I am working on a VPS. The server we are using was installed with WHM Accelerated and CPanel, the option we selected for DNS was BIND.
When I came to updating the Nameservers on the Domain Registrar's website I received an error, unhelpfully this was not explained by the system and we were told to call support. After a chat with support they confirmed everything was okay on their side of things. This meant that something was wrong on the server!
The first place I started was with the DNS zone records. Following this, awful helpful Host Gator tutorial: support.hostgator.com/articles/hosting-guide/lets-get-started/linux-dedicated-hosting/how-to-initially-configure-your-server-via-whm-part-2. The basic gist of it is I set up ns1 to point to the static IP using an A record. The same for ns2, I then set up two NS records pointing xx.com to ns1.xx.com and ns2.xx.com. I have also updated the SOA record to include ns1.xx.com. Below is a screen shot of what I have for the DNS zone record for xx.com:
This all seemed fine to me. I am not sure why this isn't working at all. This DNS zone is for xx.com and belongs to the account xx. I have messed around with the TTL settings, but I don't think that would have such an impact?
Believing this to be correct I have looked else where on the server. When I check out the "NS Record Report" ns1.xx.com and ns2.xx.com do exist! But neither of them do have a resolved IP address:
After some research regarding this I found that the issue could be that the IPs just haven't refreshed in CPanel, fair enough, I updated them with SSH using the following commands:
root@server [~]# /usr/local/cpanel/scripts/updatenameserverips
And then, checking the file with the IPs in shows:
root@server [~]# cat /var/cpanel/nameserverips.yaml
---
ns1.heliops.co:
count: 1
zones: heliops.co
ns2.heliops.co:
count: 1
zones: heliops.co
If I run the same two commands again, this is the result I am getting:
root@server [~]# /usr/local/cpanel/scripts/updatenameserverips
root@server [~]# cat /var/cpanel/nameserverips.yaml
---
ns1.heliops.co:
"": 0
count: 1
zones: heliops.co
ns2.heliops.co:
"": 0
count: 1
zones: heliops.co
As you can see the "": 0 makes an appearance out of nowhere. From looking around the internet, I can see that this is where the IP address should appear. I think?
There doesn't appear to be an associated IP address. I also came across the following command:
root@server [~]# cat /etc/nameserverips
I thought this would make the actual IPs show up in the terminal, but nope! It returns absolutely nothing. Just takes me to the next input in the terminal.
I thought maybe the issue was that BIND had not started, as I had previously had issues with Apache, but I restarted the system and everything was working fine. So I have gathered that is not the issue.
I found another thing I thought may have helped in Server Management->Basic cPanel & WHM Setup. At the very bottom of the page I found 4 name server settings. Two of them were empty the top 2 have two name server options, belonging to the company we are renting the server from. They both have the current IP assigned to them, they are also the current name servers in on the domain registrar for xx.com. I haven't touched them anymore than clicking the Assign IP button because I didn't want to accidentally break WHM or CPanel.