Skip to content

Instantly share code, notes, and snippets.

@bsingr
Last active February 16, 2016 09:46
Show Gist options
  • Save bsingr/65a4b5d87c3297dd4042 to your computer and use it in GitHub Desktop.
Save bsingr/65a4b5d87c3297dd4042 to your computer and use it in GitHub Desktop.
DNS Change
# Chrome
chrome://net-internals/#dns
# Firefox
about:config
# List devices
sudo networksetup -listallnetworkservices
# Add two dns servers to each device
# USB Ethernet
sudo networksetup -setdnsservers Thunderbolt\ Ethernet 10.10.12.10 10.10.10.1
# Thunderbolt Ethernet
sudo networksetup -setdnsservers USB\ 10/100/1000\ LAN 10.10.12.10 10.10.10.1
# Wifi
sudo networksetup -setdnsservers Wi-Fi 10.10.12.10 10.10.10.1
# Flush DNS
sudo dscacheutil -flushcache
# Restart DNS OSX 10.10.4+
sudo killall -HUP mDNSResponder
# Restart DNS OSX 10.10.0-3
sudo discoveryutil mdnsflushcache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment