Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
linux_wiki:troubleshoot_dns_client_issues [2016/08/30 23:06] billdozor created |
linux_wiki:troubleshoot_dns_client_issues [2016/09/29 22:56] billdozor [Troubleshoot DNS From a Client] |
||
---|---|---|---|
Line 4: | Line 4: | ||
Client perspective checking DNS configuration. | Client perspective checking DNS configuration. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== Troubleshooting: | ||
+ | |||
+ | View (dump) the current contents of the unbound cache | ||
+ | <code bash> | ||
+ | unbound-control dump_cache | ||
+ | </ | ||
+ | * This can be also redirected to a file to make edits and load back into cache | ||
+ | |||
+ | \\ | ||
+ | Purge the cache: Single record | ||
+ | <code bash> | ||
+ | unbound-control flush myhost1.example.com | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Purge the cache: Entire Zone | ||
+ | <code bash> | ||
+ | unbound-control flush example.com | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | Load cache from a file (dumped there previously) | ||
+ | <code bash> | ||
+ | unbound-control load_cache < cache.txt | ||
+ | </ | ||
---- | ---- | ||
Line 42: | Line 70: | ||
dig @< | dig @< | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | Dig returns a status indicator in the "Got Answer" | ||
+ | * NOERROR - DNS resolve was successful | ||
+ | * NXDOMAIN - DNS info requested could not be found | ||
+ | * SERVFAIL - Error contacting a DNS server | ||
---- | ---- | ||