Basic configuration

The MI department has already set up a DNS service for mi.hdm-stuttgart.de. But regarding upcoming exercises we want to configure additional host aliases. Follow the subsequently described approach to achieve this goal:

  • Setting up an additional name server on one of your virtual machines.

  • Configure any test client hosts (e.g. your local machine) to use your DNS server.

Consider the example virtual machine sdi4a.mi.hdm-stuttgart.de / 141.62.75.104 hosting a DNS server. It should provide at least the following data:

ns4.mi.hdm-stuttgart.de

Primary name server for domain sdi4a.mi.hdm-stuttgart.de.

sdi4a.mi.hdm-stuttgart.de

Host name.

www4-1.mi.hdm-stuttgart.de and www4-2.mi.hdm-stuttgart.de

CNAME aliases.

All host names (albeit not yet existing) should point to one of your two virtual machines. This requires setting up both a forward and a reverse zone file.

Tip

  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.