==Linux下如何清除DNS cache==
Linux下如何清除DNS cache
《解決方案》
#rndc --help
rndc: illegal option -- -
Usage: rndc [-c config] [-s server] [-p port]
[-k key-file ] [-y key] [-V] command
command is one of the following:
reload Reload configuration file and zones.
reload zone ]
Reload a single zone.
refresh zone ]
Schedule immediate maintenance for a zone.
retransfer zone ]
Retransfer a single zone without checking serial number.
freeze zone ]
Suspend updates to a dynamic zone.
thaw zone ]
Enable updates to a frozen dynamic zone and reload it.
reconfig Reload configuration file and new zones only.
stats Write server statistics to the statistics file.
querylog Toggle query logging.
dumpdb [-all|-cache|-zones]
Dump cache(s) to the dump file (named_dump.db).
stop Save pending updates to master files and stop the server.
stop -p Save pending updates to master files and stop the server
reporting process id.
halt Stop the server without saving pending updates.
halt -p Stop the server without saving pending updates reporting
process id.
trace Increment debugging level by one.
trace level Change the debugging level.
notrace Set debugging level to 0.
flush Flushes all of the server's caches.
flush Flushes the server's cache for a view.
flushname name
Flush the given name from the server's cache(s)
status Display status of the server.
recursing Dump the queries that are currently recursing (named.recursing)
*restart Restart the server.