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 Chief Operating Officer of HCS Technology Group, Keith plays a pivotal role in driving operational excellence and technical innovation.

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