scutil --dnsYou can check out the mDNSReponder config with:
defaults read /System/Library/LaunchDaemons/com.apple.mDNSResponderWhich, incidentally, is the place to add -NoMulticastAdvertisements to disable bonjour.
You can make a query through mDNSResponder with:
$ dscacheutil -q host -a name slashdot.org name: slashdot.org ip_address: 216.34.181.45 $ dscacheutil -q host -a ip_address 216.34.181.45 name: slashdot.org alias: 45.181.34.216.in-addr.arpa ip_address: 216.34.181.45
To see the DNS cache, dump the state of mDNSResponder into system.log with:
sudo killall -INFO mDNSResponderYou can also turn on (very verbose) DNS logging into system.log:
sudo killall -USR1 mDNSResponderOr even turn on packet capture with:
sudo killall -USR2 mDNSResponderYou can see the other (non-DNS) caching in the local directory service with:
dscacheutil -statistics dscacheutil -cachedump -entries
No comments:
Post a Comment