Configuring a Caching Name Server



Configuring a Caching Name Server

The Red Hat/Fedora default installation of BIND is configured to convert your Linux box into a caching name server. The only file you have to edit is /etc/resolv.conf; you'll have to comment out the reference to your previous DNS server (most likely your router) with a # or make it point to the server itself using the universal localhost IP address of 127.0.0.1.

So, your old entry of:

     nameserver 192.168.1.1

would be replaced by a new entry of:

     # nameserver 192.168.1.1

or

     nameserver 127.0.0.1

The next step is to make all the other machines on your network point to the caching DNS server as their primary DNS server.