Differences
This shows you the differences between two versions of the page.
linux_wiki:configure_a_caching-only_name_server [2016/08/30 22:50] billdozor [Named DNS Caching Server] |
linux_wiki:configure_a_caching-only_name_server [2019/05/25 23:50] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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 | ||
- | <code bash> | ||
- | yum install bind bind-utils | ||
- | </ | ||
- | * bind -> server package | ||
- | * bind-utils -> client utilities | ||
- | |||
- | \\ | ||
- | Make some named configuration changes | ||
- | <code bash> | ||
- | vim / | ||
- | |||
- | listen-on port 53 { any; }; | ||
- | allow-query { any; }; | ||
- | |||
- | dnssec-validation no; | ||
- | </ | ||
- | * listen on any IP | ||
- | * allow queries from any sources | ||
- | * do not validate local lookups | ||
- | |||
- | \\ | ||
- | Check named.conf config syntax | ||
- | <code bash> | ||
- | named-checkconf | ||
- | </ | ||
- | * No output = no mistakes | ||
- | |||
- | \\ | ||
- | Open the firewall for DNS | ||
- | <code bash> | ||
- | firewall-cmd --permanent --add-service=dns | ||
- | firewall-cmd --reload | ||
- | </ | ||
- | |||
- | \\ | ||
- | Start the named service | ||
- | <code bash> | ||
- | systemctl enable named | ||
- | systemctl start named | ||
- | </ | ||
- | |||
- | \\ | ||
- | Test a domain lookup | ||
- | <code bash> | ||
- | nslookup google.com 127.0.0.1 | ||
- | |||
- | OR | ||
- | |||
- | dig @127.0.0.1 google.com | ||
- | </ | ||
- | |||
- | ---- | ||