ISC Bind: Difference between revisions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
named-checkconf /etc/named.conf | named-checkconf /etc/named.conf | ||
==Zones== | ==Zones== | ||
Line 50: | Line 32: | ||
rndc addzone [zonename] | rndc addzone [zonename] | ||
==Cache== | |||
===Flush cache of a domain and all its subdomains=== | |||
rndc flushtree name [view] | |||
Example: | |||
rndc flushtree website-to-flush.com internal | |||
===Flush cache of a domain=== | |||
rndc flushname name [view] | |||
Example: | |||
rndc flushname website-to-flush.com internal |
Revision as of 15:52, 21 January 2025
Config
Check Config
No output is good output ;)
named-checkconf /etc/named.conf
Zones
Reload All Zones From Config
rndc reload
Reload A Specific Zone
rndc reload [zonename]
Check A Zone's Status
rndc zonestatus [zonename]
Remove A Zone From Service
(just unloads zone from memory; doesn't delete the zone from config)
rndc delzone [zonename]
Add A Zone
- (zone must have been loaded from config already)*
rndc addzone [zonename]
Cache
Flush cache of a domain and all its subdomains
rndc flushtree name [view]
Example:
rndc flushtree website-to-flush.com internal
Flush cache of a domain
rndc flushname name [view]
Example:
rndc flushname website-to-flush.com internal