certificationredhatrhce

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

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

  1. 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

    Yours,
    Joel

Leave a Reply