Remove custom dns server setting via command line
Here's a one liner and the thread where I learned this a while back:

sudo networksetup -setdnsservers Wi-Fi "Empty"


After using `networksetup -setdnsservers Wi-Fi &quot;8.8.8.8&quot; &quot;8.8.4.4&quot;` how do I clear them?