Created
January 24, 2011 14:00
-
-
Save wneessen/793241 to your computer and use it in GitHub Desktop.
Set your MacOS X resolver using scutil for all interfaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INTERFACES=`echo "list State:/Network/Service/[^/]+/DNS" | scutil | awk -F= '{print $2}'` | |
SERVER=<yourDNS> | |
for INTERFACE in ${INTERFACES} | |
do | |
echo "get ${INTERFACE}\nd.add ServerAddresses * ${SERVER}\nset ${INTERFACE}" | sudo scutil | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you by any chance know how to resolve https://discussions.apple.com/thread/5483717 using sctuil? A flag Request AAAA records needs to be added to a resolver.