How to unset DNS servers with networksetup command?

Hi.


I set DNS server setting at terminal with networksetup command.


shell> sudo networksetup -setdnsservers "Wi-Fi" 127.0.0.1


How to unset DNS servers with networksetup command?


Such as...


shell> sudo networksetup -setdnsservers "Wi-Fi" // not working!

I want to switch quickly and easily when connect to DNS overriding free wi-fi spots.


Thanks.

MacBook Pro (Retina, 13-inch, Mid 2014), OS X Yosemite (10.10.5)

Posted on Dec 12, 2015 2:59 AM

Reply
1 reply

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.

How to unset DNS servers with networksetup command?

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