Wednesday, December 29, 2010

DNS -- Configure a caching-only name server

There is a good walkthrough of setting up a chaching nameserver at

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; to any;
  • Change allow-query from localhost; to any;
  • Add forwarders {;; }; and forward only; to the options section
Restart dns - service named restart
Edit /etc/resolve.conf to use the local DNS server


Anonymous said...

I believe caching-nameserver package is not available for RHEL 6.

Anonymous said...

Hello Friend -
*Thank you* for posting these blogs. I followed the instructions and found I had to perform this before the config would work:
chown root:named /var/named/chroot/etc/named.conf


abe-sa said...
This comment has been removed by the author.