Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

DNS Cache location?

I'm just curious where OS X Server 10.6 stores its DNS cache or if there is a Terminal command I can use to display all of the caches from my network.

Thanks!

Mac Mini 1.66 Core Duo 2GB Server, MacBook Pro 15" (Santa Rosa), Mac OS X (10.6.4)

Posted on Jul 5, 2010 12:37 PM

Reply
7 replies

Jul 5, 2010 2:05 PM in response to MrHoffman

rndc controls named, the name server, so is only relevant if you're running a DNS server on your machine.

In contrast, the host resolver is controlled via dscacheutil, specifically:

dscacheutil -flushcache


will flush the resolver cache. There's also a -cachedump switch which supposedly shows you the cache content, but I can never seem to make it work (either that, or it's not caching the data I expect).

Jul 6, 2010 7:15 PM in response to Motoxxbiker

OK I got it to work by editing named.conf becuase it was this before:

+controls {+
+inet 127.0.0.1 port 54 allow {any; }+
+keys { "rndc-key"; };+
};

which listened on port 54 and the error I was getting was from 953. so I changed 54 to 953 and it worked. _Is this bad to keep this way or should I change it back?_

Now:

+controls {+
+inet 127.0.0.1 port 953 allow {any; }+
+keys { "rndc-key"; };+
};

Message was edited by: Motoxxbiker

Jul 6, 2010 7:32 PM in response to Motoxxbiker

Check the system logs. See if there's an error on that end indicating any additional details of the problem. (The management port access is understandably restricted.)

This might require setting up /etc/rndc.conf by running rndc-confgen - have a look at the bind9 documentation and at the man pages for rndc and rndc.conf and rndc-confgen and Google around - and this will allow you to authenticate into the management port of the DNS server.

It's also rare that there's a need to flush the DNS caches.

DNS Cache location?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.