Recently lost the ability to nslookup and ping websites on one of our cPanel servers. Websites are still loading, but there's a problem with DNS resolving properly.
I've double-checked the domain registrar IP settings for our nameserver, and they're correct.
Then I checked WHM -> Edit DNS Zone. There are no entries for the FQDN of the server or the nameservers, but the websites do have DNS zones with entries for the nameservers.
Next I checked the basic cPanel & WHM setup -> Nameservers. The correct nameservers were listed, but no IPs. When I clicked on "Assign," WHM assigned an incorrect IP, so I clicked on "Add A entry" where I entered the correct nameserver IP and clicked the "Add entry" button. WHM confirmed adding an A entry and that the correct IP had been used. Did the same for both nameservers, then clicked "Save changes".
Went back to "Edit DNS Zone" where I expected to find entries like ns1.host.com and ns2.host.com, but there were not entries. Our other cPanel server has these entries listed under Edit DNS Zone, and also has the FQDN of the server like this server.host.com.
When I use putty to check /etc/resolv.conf, I'm finding an OLD server domain listed for "search" and "domain". I edit these to the current server domain, but it gets overwritten later.
What am I doing wrong? Seems like this should be relatively easy to accomplish within WHM, but I've found several forum threads that suggest similar frustrations. Any tips to point me in the right direction would be very much appreciated.
I've double-checked the domain registrar IP settings for our nameserver, and they're correct.
Then I checked WHM -> Edit DNS Zone. There are no entries for the FQDN of the server or the nameservers, but the websites do have DNS zones with entries for the nameservers.
Next I checked the basic cPanel & WHM setup -> Nameservers. The correct nameservers were listed, but no IPs. When I clicked on "Assign," WHM assigned an incorrect IP, so I clicked on "Add A entry" where I entered the correct nameserver IP and clicked the "Add entry" button. WHM confirmed adding an A entry and that the correct IP had been used. Did the same for both nameservers, then clicked "Save changes".
Went back to "Edit DNS Zone" where I expected to find entries like ns1.host.com and ns2.host.com, but there were not entries. Our other cPanel server has these entries listed under Edit DNS Zone, and also has the FQDN of the server like this server.host.com.
When I use putty to check /etc/resolv.conf, I'm finding an OLD server domain listed for "search" and "domain". I edit these to the current server domain, but it gets overwritten later.
What am I doing wrong? Seems like this should be relatively easy to accomplish within WHM, but I've found several forum threads that suggest similar frustrations. Any tips to point me in the right direction would be very much appreciated.