DNS — Configure a caching-only name server

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; 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

3 thoughts on “DNS — Configure a caching-only name server

  • January 3, 2011 at 12:17 am

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

  • January 16, 2011 at 9:53 pm

    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


Leave a Reply