mattmcneeney / DNSSwitcher

An OS X menu bar utility to quickly change your DNS settings.
46 stars 5 forks source link

Switch back to default DNS server #1

Open 1f5 opened 7 years ago

1f5 commented 7 years ago

Please provide an option to change back to the network-provided default DNS server.

sebastianhaberey commented 4 years ago

Yes that would be nice.

sebastianhaberey commented 4 years ago

There's an easy solution for this. Configure your servers like so:

{
    "interface": "Wi-Fi",
    "settings" : [
        {
            "name" : "Clear",
            "servers": [
                "Empty"
            ]
        },
        ...
    ]
}

The "Empty" option is a special value that will cause the networksetup command to clear all DNS entries.