Can't delete NextDNS profile from macOS Network Preferences
I don't know why but I've mess something and now I'm unable to delete the nextdns profile from network prefs in macOS. I think I have deleted the profile without turning off the dns service, so I've found the plist file but I'm unable to delete it.
I've already tried to install a new profile, then delete it and see if it deletes both the new and old dns profile, but no, it deletes only the new profile and its related dns preference. Not the old, even if I made a new profile with the same details as the old one.
Any help? Thanks
26 replies
-
Looks like a macOS bug. Which version of macOS are you running?
-
Have you tried temporarily disabling SIP? That should allow you to delete any file.
-
Giulio Magnifico
That type of profile is stored in a different location
Got to System Preferences>Profiles
and remove it from there ........
EDIT: sorry my bad you already tried that!
Have you simply tried restating the mac to see if it clears out the old network dns?
In your network screen when the NextDNS is selected what options do you get clicking on the down arrow along side the + and - to the bottom?
-
Giulio Magnifico
HOW to manually remove a network service from a Mac
In Terminal type networksetup
-removenetworkservice “yournetworkservice”
Instead of
yournetworkservice
, type the name of the network service you want to remove from your macOS device, using quotation marks. If you are not sure about its correct name, you can find it in the list of your network services.To view this list, go to Terminal:
networksetup -listallnetworkservices
Make sure that you typed the name of the network service exactly in the same way as it appears in the list.
To ensure that the network service is removed on your macOS, you can view the list of network services again:
Terminal:
networksetup -listallnetworkservices
Note. Only Terminal is required, no XCode. The .plist will update automatically; you don’t need to copy or delete it. The remove command bypasses the GUI and removes the service whether or not the button is greyed out.
-
The software was deleted but the service can not be removed:
xxxxxxx@Mini-van-JEJ ~ % networksetup -listallnetworkservices
An asterisk (*) denotes that a network service is disabled.
Ethernet
Ethernet Adaptor (en4)
Ethernet Adaptor (en5)
Wi-Fi
Bluetooth PAN
Thunderbolt Bridge
NextDNS
xxxxxxx@Mini-van-JEJ ~ % networksetup -removenetworkservice "NextDNS"
You cannot remove NextDNS because there aren't any other network services on IPv4.
** Error: The parameters were not valid.
-
Olivier Poitrey Please help resolve this problem?
-
Shaun Campbell Lilac Kite Giulio Magnifico
Make sure System Preferences and any other software that may attempt to switch network locations is quit before beginning.
Make a backup of the preferences file.
cd /Library/Preferences/SystemConfiguration
sudo cp preferences.plist preferences.plist.oldGive yourself permissions to the preference file.
sudo chown $USER preferences.plist
sudo chmod u+w preferences.plistNow you should be able to remove the plist file as attempted in the first post!!!
if it still fails, you might need to remove it using terminal with the sudo command at the beginning...
Always use sudo with caution -
Giulio Magnifico
You will need to grant Terminal with Full Disk Access privileges in security & privacy
Open Security & Privacy in System Preferences. Click the Privacy tab, select Full Disk Access and add Terminal to the list of applications. You'll likely have to unlock that screen first by clicking the padlock at the lower left corner.
Another alternative: if you have Time Machine backup working
Try to restore the plist file back before the time the profile was updated -
Same problem here, macOS 11.4 (20F71). Is there any fix for this?
-
1 CMD+R —> Recovery —> Terminal —> csrutil disable
2 Reboot and delete the file com.apple.networkextension.plist and reboot again
3 Shutdown and boot into recovery CMD+R. —> Terminal —> csrutil enable
4 Reboot into normal os and swear on Apple’s bug.
-
Guys, you are looking at the wrong place. Instead of System Preferences > Network, go to System Preferences > Profiles. You will find your NextDNS profile there and there is a button to remove it (which is not disabled).
Not sure if there is any difference on previous macOS versions, but it is there on Monterey :)
-
Unfortunately this bug is still present even today, more than a year later it is not fixed and some regular webpages like our company website not loading for me
-
Still happening on macOS 13.5 beta on a M1 MacMini
Content aside
-
7
Likes
- 9 mths agoLast active
- 26Replies
- 3650Views
-
15
Following