Installing Bind

You may follow:

Install the bind9 server package on your 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.

Consider the example virtual machine / hosting a DNS server. Create a complete new zone describing a domain containing both your machine's 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

An (CNAME) alias to

All host names (albeit not yet existing) should point to your virtual machine's 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.