dscacheutil -flushcacheThen fire up my friend Apple Remote Desktop, click on all of my secondaries and run rndc. The rndc command manages name server operations. It can be used for specific zones. A basic use of the command is to simply refresh a zone. Commands are run from the secondaries. To see statistics on queries, views and other operations, use rndc, followed by the -p option, which specifies the port DNS is running on (54) and then the stats command:
rndc -p 54 statsYou can then cat /var/named/named.stats to see information. Running other commands and looking back at the counters should show when operations are actually running and when they aren’t. Despite the stats, a stale record is stale so to refresh a zone use the refresh command (here we’re going to look at home.krypted.com):
rndc -p 54 refresh krypted.comThis queues up a refresh, which can still take some time. And after using Twitter for a little while, I no longer have any patience. So, I’m going to do a full retransfer, specifying the view to transfer from (this should be com.apple.ServerAdmin.DNS.public in OS X):
rndc -p 54 retransfer krypted.com IN com.apple.ServerAdmin.DNS.publicNow I’m going to reload my configuration, using the aptly named reload verb:
rndc -p 54 reloadAnd then flush the cache one last time and use dig to check my records. Viola. Now I can go home and have a life writing blog posts, books and articles. Ah, I love technology again. Amazing what not having to wait for things will do for ya’. Hmmm. I guess Captain Ludd can kiss my keester!
krypted July 8th, 2011