The commands below will remove the settings from the Ethernet and Wi-Fi interfaces.  You can lookup more features using the man command for networksetup.  IE.. man networksetup

networksetup -setsearchdomains "Wi-Fi" "Empty"

networksetup -setdnsservers "Wi-Fi" "Empty"

networksetup -setdnsservers "Ethernet" "Empty"

networksetup -setsearchdomains "Ethernet" "Empty"

Keith Mitnick

As Senior System Engineer & COO at HCS, Keith wears many hats. He is responsible for a myriad of duties at HCS. Keith is always willing to do the job at hand and is never afraid to get his hands dirty.

Speak with an Apple Certified expert today

We’d love to discuss your business challenges, even if you’re not sure what your next step is. No pitch, no strings attached.

Let's Talk