search somedomain.net nameserver 10.2.2.2when you try to
ssh testIt will not search “test.somedomain.net” anymore. To fix it, open up file:
sudo vim /System/Library/LaunchDaemons/com.apple.mDNSResponder.plistAdd “<string>-AlwaysAppendSearchDomains</string>” into the following section:
<array> <string>/usr/sbin/mDNSResponder</string> <string>-AlwaysAppendSearchDomains</string> </array>And finally reload mDNSResponder service:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plistThis should enable you to perform DNS lookups the same way as was before.