linux_wiki:configure_a_caching-only_name_server

This is an old revision of the document!


Configure A Caching-only Name Server

General Information

Caching-only name servers are non-authoritative. They perform lookups inside or outside the zone and cache the results to use locally.


Named DNS Caching Server

Install required packages

yum install bind bind-utils
  • bind → server package
  • bind-utils → client utilities


Make some named configuration changes

vim /etc/named.conf
 
listen-on port 53 { any; };
allow-query { any; };
 
dnssec-validation no;
  • listen on any IP
  • allow queries from any sources


Check named.conf config syntax

named-checkconf
  • No output = no mistakes


Open the firewall for DNS

firewall-cmd --permanent --add-service=dns
firewall-cmd --reload


Start the named service

systemctl enable named
systemctl start named


Test a domain lookup

nslookup google.com 127.0.0.1
 
OR
 
dig @127.0.0.1 google.com

  • linux_wiki/configure_a_caching-only_name_server.1472611795.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)