
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
05-28-2018
02:58 AM
- last edited on
03-04-2025
07:44 AM
by
kh-richa_mig
Hello.
I was hoping someone could point me in the right direction. I'm looking for a script/command to remove client side DNS entries which were manually configured. So say I configure my DNS for Wi-Fi as 1.1.1.1, I would like something in the background which would remove these entries.
I've seen from apple docs that I can set DNS servers, but not delete them.
networksetup -setdnsservers "Built-in Ethernet" 192.168.100.100 192.168.100.12
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-28-2018 04:29 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 05-28-2018 04:29 AM
Hey
Should be:
networksetup -setdnsservers (network name) empty
