TechieDrill Your World Of Technical Tutorials

Configuring Domain Name Server

11.13.2009 · Posted in Linux Advanced

Domain Name ServerĀ for Home networking

Domain Name Servers maps internet protocol address with Fully Qualified Domain name(FQDN) such as www.techiedrill.com maps to an ip_address this is called Reverse Lookup. Inverse is also applicable, mapping ip_address to a domain name this is called Forward Lookup

Configuring DNS varies with various linux distribution

Download and install Bind packages

For configuring Bind use chkconfig command to start while booting

#chkconfig named on

to stop bind

#/etc/init.d/named stop

Configuring resolv.conf

To make the DNS resolv to itself modify /etc/resolv.conf file to reference localhost

nameserver server_ip_address

Give an entry in hosts

#vi /etc/hosts

ip_address www.sample.com

Use /var/named.conf to configure DNS server

#vi named.conf

zone : “sample.com” IN {

type master;

file “sample.com.forward”;

};

zone “ip_address.in-addr.arpa” IN {

type master;

file “sample.com.reverse”;

};

file “sample.com.forward”;
};
zone “ip_address.in-addr.arpa” IN {
type master;
file “sample.com.reverse”;
};

Now Restart the Servers using

#service named restart

Leave a Reply

You must be logged in to post a comment.