DNS -- Configure a caching-only name server to forward DNS queries

I am not sure what the difference si between forwarding queries and caching queries – they both forward to another location.

There is a good walkthrough of setting up a chaching nameserver at http://www.redhat.com/magazine/025nov06/features/dns/

Install the needed components yum install bind bind-utils bind-libs bind-chroot caching-nameserver

copy /etc/named.conf to /var/named/chroot/etc/
edit /var/named/chroot/etc/named.conf

  • Change listen-on port from 127.0.0.1; to any;
  • Change allow-query from localhost; to any;
  • Add forwarders { 1.2.3.4; 5.6.7.8; }; and forward only; to the options section

Restart dns – service named restart
Edit /etc/resolve.conf to use the local DNS server

Comments