How can I stop my iMac from changing DNS settings automatically?

I have being using my iMac for 11 years and this issue has only arisen in the past few days. In short when I fire up my iMac (running under Big Sur) I am unable to access the internet or my mail. After investigating the issue I find my DNS setting has been changed. By editing the DNS setting back to my normal DNS (BT Router) everything works fine. The problem is this happens every morning when I logon. The changed DNS is 198.18.0.33 which is apparently a Bogon IP Address. I do have a VPN, but it is always off when I logon and has never caused this issue in the past. Is it possible to allocate the DNS and have it fixed and only allow it to be changed by me via my password or can anyone suggest any other way forward? May thanks



[Re-Titled by Moderator]

iMac 27″, macOS 11.7

Posted on Apr 21, 2025 2:19 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 21, 2025 5:28 AM

Uninstall the VPN as a test. Turning it off makes no difference as there are still files that launch on startup and continue to run in the background. You will need to follow the instructions for the VPN provider to uninstall to make sure all files have been removed. In most cases, simply dragging the application to the trash will not work.


If everything works correctly with the VPN uninstalled, you have now determined the source of the problem and know where to concentrate your efforts for a solution. Start by contacting the developer of the app or simply evaluate to reason why you are using a VPN altogether. If you have fallen for the marketing ploys that they provide security to your device, then that is a false assumption. Their use should only be to "tunnel" into enterprise networks such as those offered by work or school environments.

9 replies
Question marked as Top-ranking reply

Apr 21, 2025 5:28 AM in response to Gareth Morris1

Uninstall the VPN as a test. Turning it off makes no difference as there are still files that launch on startup and continue to run in the background. You will need to follow the instructions for the VPN provider to uninstall to make sure all files have been removed. In most cases, simply dragging the application to the trash will not work.


If everything works correctly with the VPN uninstalled, you have now determined the source of the problem and know where to concentrate your efforts for a solution. Start by contacting the developer of the app or simply evaluate to reason why you are using a VPN altogether. If you have fallen for the marketing ploys that they provide security to your device, then that is a false assumption. Their use should only be to "tunnel" into enterprise networks such as those offered by work or school environments.

Apr 21, 2025 10:32 AM in response to Gareth Morris1

Gareth Morris1 wrote:

I do have a VPN, but it is always off when I logon and has never caused this issue in the past.

Unless you're using a true VPN tunnel, such as between you and your employer's, school's or bank's servers, they provide false security from a privacy standpoint.  Read these articles:  Pubic VPN's are anything but public and Security Risks: The Dangers of Using Free VPNs (eccu.edu).  


Please follow Mac Jim ID's recommendation and uninstall the VPN fully. You can check to see if you've removed all of the supporting files by downloading and running the shareware app Find Any File to search for any files with the application's or the developer's name in the file name.  For VPN software you'd do the following search(es): 


1 - Name contains vpn


Any files that are found can be dragged from the search results window to the Desktop or Trash bin in the Dock for deletion.


FAF can search areas that Spotlight can't like invisible folders, system folders and packages.  


If you get warnings that the file can't be deleted because it is in use or used by another app boot into Safe Mode according to How to use safe mode on your Mac and delete from there.


Note:  if you have a wireless keyboard with rechargeable batteries connect it with its charging cable before booting into Safe Mode.  This makes it act as a wired keyboard as will assure a successful boot into Safe Mode.


Apr 21, 2025 5:02 AM in response to KiltedTim

Many thanks for the responses - much appreciated. Just a couple of points on your replies. To re-emphasise this has only started to happen a few days ago after many years of no issue. On a daily basis I now use the "Change DNS settings on my Mac" procedure. This does not "hold" as the next day I have to follow the same procedure to change the incorrect DNS, which is always 198.18.0.33, back to my BT Router DNS setting. Without applying this change I have no internet. The VPN is not even on when this is happening so I cannot see what effect that would have.

Apr 21, 2025 6:59 AM in response to KiltedTim

Thank you both for your advice. I will certainly try out the suggestion to turn off the VPN completely and see if that makes the difference. Still puzzles me that even with the VPN on the system all was well until a few days ago. Anyway, will try the complete uninstall and see that resolves the issue. Once again my thanks, really appreciate your help.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I stop my iMac from changing DNS settings automatically?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.