DNS IP issue, switching between 2ips

upaxnet

Member
Apr 21, 2017
7
1
1
Norway
cPanel Access Level
Root Administrator
Hi guys, I have a issue I've been trying to solve for a few days now.

I currently have 3 DNSOnly servers and they all work just fine, except a tiny issue.

the A record for ns1 is switing between 2ips, even tho it only has 1ip assigned.

When I use dnschecker.org and check the A record for ns1 it gives 2 different IPs in the lookup results.

When I go to WHM --> Basic WebHost Manager® Setup --> Nameservers (on the bottom) and click on configure Address Records, it also pops up different IP on nameserver 1. Sometimes it shows the correct ip, sometimes it shows the wrong ip.

After some digging, I shut down my 3rd nameserver and now it seems to be ok, but its only good as long as the third nameserver is offline. I've checked all the records on the server and it has the correct ip and setup, are there any files I could check to see if there is a misconfig somewhere?

Thanks all
Eirik.
 
Last edited by a moderator:

upaxnet

Member
Apr 21, 2017
7
1
1
Norway
cPanel Access Level
Root Administrator
Thanks dalem, I checked the /var/named folder on my NS3 and found that it was missing the zones for ns1 and ns2. Tried to sync the zones via WHM to pull inn the missing zones but nothing happened. Also tried to sync a spesific zone by entering the zone name, and got an error that the zone did not exist.

I added the zones manually to the NS3 and now it works as it should.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,254
463
Hello,

You may also want to ensure the "ns1" A record in the DNS zone of the parent domain name is setup to resolve to the correct IP address.

Thank you.