Installing Bind
Install the bind9 server package on
your “a” virtual machine. The MI department has already set
up a DNS service for
mi.hdm-stuttgart.de
. But regarding upcoming exercises we
want to be able configuring private host aliases.
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 your virtual machine's IP. This requires setting up a forward zone file.
Tip
-
The named-checkzone command helps you to check for your two zone files' correctness
-
The named-checkconf command checks for your configuration's overall correctness.
-
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.
-
ns
(Nameserver) -
www
(Future Webserver, see Apache web server).
Test your configuration using dig
@<your
host-IP>
...
. You should be able to
resolve e.g. www.mi.hdm-stuttgart.de
to your local host's
IP address.
Define an alternate name (alias) info
to
www
serving as info.mi.hdm-stuttgart.de
and
check this address as well.