View DNS cache (using MacOS Monterey version 12.6.5)

Is there anyway to view the DNS cache on Mac? All the information I've been able to gather so far online has led to a dead end.


The most common solution I find is this one:

  • Open up the Console and search for any:mdnsresponder and press "Start"
  • Open up Terminal and enter sudo killall –INFO mDNSResponder
  • Go back to Console to see DNS records


However, I do not see any DNS records in the Console. Instead, I see record of mDNSResponder activity, but not DNS records themselves.


In fact, I have seen this message a few times: Sending SIGINFO to mDNSResponder daemon is deprecated. To trigger state dump, please use 'dns-sd -O', enter 'dns-sd -h' for more information.


Anyone have any thoughts?

MacBook Pro 13″, macOS 10.13

Posted on May 13, 2023 10:13 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 1, 2024 08:49 AM

sudo dns-sd -O

XPC service returns error, description: State dump is only enabled in internal builds


but if you are looking for dns record for certain fqdn you can use


sudo dns-sd -G v4v6 captive.apple.com

DATE: ---Thu 01 Feb 2024---

10:42:45.712 ...STARTING...

Timestamp   A/R Flags     IF Hostname                Address                   TTL

10:42:45.759 Add 3       0 captive.g.aaplimg.com.         17.253.127.201                39

10:42:45.759 Add 2       0 captive.g.aaplimg.com.         17.253.127.204                39

10:42:45.767 Add 3       0 captive.g.aaplimg.com.         2620:0149:0A32:F100:0000:0000:0000:0212%<0> 39

10:42:45.768 Add 2       0 captive.g.aaplimg.com.         2620:0149:0A32:F000:0000:0000:0000:0207%<0> 39

Similar questions

1 reply
Question marked as Top-ranking reply

Feb 1, 2024 08:49 AM in response to SMacTalk

sudo dns-sd -O

XPC service returns error, description: State dump is only enabled in internal builds


but if you are looking for dns record for certain fqdn you can use


sudo dns-sd -G v4v6 captive.apple.com

DATE: ---Thu 01 Feb 2024---

10:42:45.712 ...STARTING...

Timestamp   A/R Flags     IF Hostname                Address                   TTL

10:42:45.759 Add 3       0 captive.g.aaplimg.com.         17.253.127.201                39

10:42:45.759 Add 2       0 captive.g.aaplimg.com.         17.253.127.204                39

10:42:45.767 Add 3       0 captive.g.aaplimg.com.         2620:0149:0A32:F100:0000:0000:0000:0212%<0> 39

10:42:45.768 Add 2       0 captive.g.aaplimg.com.         2620:0149:0A32:F000:0000:0000:0000:0207%<0> 39

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

View DNS cache (using MacOS Monterey version 12.6.5)

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