Installing and configuring Bind

You may follow:

Install the bind9 server package on your first A virtual machine. The MI department has already set up a DNS service for But regarding upcoming exercises we want to be able configuring private host aliases.

If you are a member of e.g. group 7 then will host your DNS server. Create a complete new zone containing both your machines and address records. Your DNS server should provide at least the following data:

Your domain's primary nameserver

Primary name server for domain

Your first machine's host name.

Your second machine's host name. and

(CNAME) aliases to or

All host names (albeit not yet existing) should point to your virtual machines' IP. This requires setting up a forward zone file.


  1. The named-checkzone command helps you to check for your two zone files' correctness

  2. The named-checkconf command checks for your configuration's overall correctness.

  3. You may use the nslookup command to query your DNS server. The set type=ns option allows to query for the domain's primary name server.

Test your configuration using dig @<your host-IP> ... . You should be able to resolve e.g. to your local host's IP address.