How to Fix a DNS Server Entry on Your Local Mac Machine

I registered a domain a while back and it was pointing to one of my virtual private server’s name servers.

The problem was, when I tried to access the new domain after keeping some sample website out there, I would be able to access it some day, and some other day, the browser would simply say that it cannot find the server. I had contacted my hosting service for support and they said that there was no problem with the website or the domain configuration and that they were able to access the website (while I was not on my machine).

So I somehow figured out it was a problem with my machine – something to do with local DNS. After doing a research, I found a way to fix it. I had to add the IP address of the name server of the domain to my local DNS configuration. These images show you how that was done.

Step 1 – Open System Preferences

Step 2 – Click on “Network” on the System Preferences window

Step 3 – Click “Advanced” button on your Network window.

Step 4 – Click on DNS Tab

Step 5 – Click on the plus (+) sign to add a new DNS entry

Step 6 – Add the IP address of your name server and click OK

If there are IP address on the list (which most probably will be there – and probably points to one of your ISPs DNS server), make sure to add your DNS entry at the end of the list. The order is important because, to resolve the IP address, the system will go through the first entry, if not found, goes to second entry and so on. If your new domain is not resolved by any other DNS entries, it then will fall to the entry that you just added.