Nameservers not responding to queries

Hammo

Registered
May 26, 2017
2
0
1
Australia
cPanel Access Level
Root Administrator
I have recently launched an EC2 instance running the official cPanel/WHM AMI. I will not be running separate instances of cPanel DNSONLY and would like to run BIND on the cPanel/WHM instance.

From my understanding I need to have three separate IP addresses:
1. Main Server IP
2. NS1 IP
2. NS2 IP

I have attached two network interfaces to this instance and have a total of 3 private IP addresses. I have then mapped an elastic IP address to each of the private IP addresses.

At the domain registrar I have created two child nameservers (ns1.domain.com and ns2.domain.com) and pointed them to two elastic IP addresses attached to my instance.

In WHM I have added these nameservers and created an A record for each nameserver. I can now ping the nameservers.

The issue is that the nameservers are not responding to any DNS requests. The accounts have been created in WHM and the domain names have been configured with the nameservers.

I'd like to know:
1. Am I configuring everything correctly? If not, what should the configuration be?
2. If the configuration is correct, why are the nameservers servers not responding to requests?

Please let me know if you require further information.
 

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
India
cPanel Access Level
Root Administrator
Run the DNS report for the domain and the name servers and it will give you an idea of whats wrong. just google dns report and it will give you the tools related to it.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

The information you provided suggests your name servers are properly configured. Could you verify which name server you are using in "WHM >> NameServer Selection" (e.g. Bind, PowerDNS)? Also, have you tried restarting the service to see if that helps? EX:

Code:
/scripts/restartsrv_named
Thank you.
 

Hammo

Registered
May 26, 2017
2
0
1
Australia
cPanel Access Level
Root Administrator
@cPanelMichael I am using BIND. I restarted the DNS service through WHM and by running that command but still no luck.

For now I've had to migrate back to my existing hosting infrastructure. I'm going to use a brand new domain name and reconfigure the AWS environment from scratch to see if I can reproduce the issue.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
For now I've had to migrate back to my existing hosting infrastructure. I'm going to use a brand new domain name and reconfigure the AWS environment from scratch to see if I can reproduce the issue.
Feel free to open a support ticket using the link in my signature if the issue persists.

Thank you.