Skip to content

Instantly share code, notes, and snippets.

@kopwei
Created October 31, 2022 21:10
Show Gist options
  • Save kopwei/f0de09cdcb449665fb3a0a6f18b13972 to your computer and use it in GitHub Desktop.
Save kopwei/f0de09cdcb449665fb3a0a6f18b13972 to your computer and use it in GitHub Desktop.
MacOS Ventura Local DNS Resolving

DNS issues resolving after upgrade to Ventura

After upgrade to Ventura I found that I can no longer use the local host name (e.g. pi, pi4main) to access the equipent in LAN.

Symptom

The following command works:

nslookup <LOCAL_HOSTNAME>
hosts <LOCAL_HOSTNAME>

Following command failed:

ping <LOCAL_HOSTNAME>
ssh <LOCAL_HOSTNAME>

Solution

I resolved the issue via suggestions from https://github.com/michthom/AlwaysAppendSearchDomains By running following command:

sudo defaults write /Library/Preferences/com.apple.mDNSResponder.plist AlwaysAppendSearchDomains -bool YES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment