Data Networking/Fall 2014/Fabfour

Domain Name Server (DNS) is a service that translates domain names to IP addresses. When a client tries to access a webpage on the web server, the request is first queried to the DNS where the domain name is resolved into IP address, after which the requested webpage can be accessed.

Steps to configure DNS

edit

Assign static IP to the DNS server:

Go to network connections > edit connections > select the network you are connected to > IPv4 address > assign the static address to the DNS server.

The static IP assigned to the DNS is 192.168.3.52


Install Bind:

Use the following command to install bind9-

Sudo apt-get install bind9


Edit the options file:

It is done to configure the primary DNS. The command used is-

Sudo nano /etc/bind/named.conf.options

OPTIONS FILE IMAGE


Edit the host file:

Use the command- Sudo nano /etc/hosts and edit it as follows:

HOST FILE IMAGE


Configure the local file:

Use the command shown below to access the file.

Sudo nano /etc/bind/named.conf.local

Once the file opens, configure the forward and reverse lookup zones.

LOCAL FILE IMAGE


Create zone directory and forward and reverse files:

To create the zone directory, use the command-

Sudo mkdir zones


The forward lookup zone does hostname > IP address translation and reverse lookup zone does IP address > hostname translation.

Our forward lookup zone file is db.fabfour.com.

FORWARD LOOKUP IMAGE

Our reverse lookup zone filename is db.192.168.3

REVERSE LOOKUP IMAGE


Checking of the forward and reverse zone files:

Use the following commands-

Sudo named-checkzone fabfour.com db.fabfour.com Sudo named-checkzone 3.168.192.in-addr.arpa/etc/bind/zones/db.192.168.3

If an error is not there in any of the files then the serial is shown at the output. It is as follows:

FORWARD ZONE CHECKING IMAGE

REVERSE ZONE CHECKING IMAGE


Restart bind:

Finally, restart bind to load the server. Use the command-

Sudo service bind9 restart