4P14

Lab 8
Domain and NameServers


We will be working in the Linux environment.

Each machine which is indexed by a DNS server should have a name. The command to determine the hostname  in Linux is hostname. Try this, what did you get?



This indicates that it have been set, or they are set to something which is not to your taste. Set the host name to J327-DayIP. For the purpose of this lab, Day will be the day of the lab, e.g. If it is a Wednesday  lab then Wed can be used. The IP will be the last part of the static IP your were asked to set your machine to in lab 6 (written on the front of the desk), e.g. 10, 20, 30 etc.


Do something similar with the domainname, such as J327Day.


To make these changes permanent, you can edit the network file /etc/sysconfig/network, do so.  restart


Adding a DNS server. We wish to add a local caching only DNS server to our network. Each machine in the lab will be its own DNS and thus operate independently. The changes above are to ensure that no two machines are in conflict.

The following document:

            https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-DNS_Servers.html

a simple youtube video which explains how to set up this beast. Must watch and follow along....

            https://www.youtube.com/watch?v=HMB7wQ86wUQ

Here is another site which helps explain BIND

            http://www.computernetworkingnotes.com/network-administrations/dns-server.html

describes how to install a DNS server under linux. Bind as mentioned in the document, and can be installed with:

        yum -y install bind bind-utils bind-chroot

When installing the server, use your own IP which should be the DHCP address your system started with. Not ideal, since we normally would use a static IP, but it will get the job done. Watch the vid and write down any ip and domains you will need to configure your system.

You can use the departments DNS servers for forwarding, 139.57.100.11

When you are finished the lab, remove bind to allow the next lab to experience this lab.

        sudo yum remove bind bind-utils bind-chroot

Reward 4%


    Show your lab demonstrator that you can lookup and resolve host names using your DNS.