DNS Not Working on Primary Server, How to connect cPanel DNS only server?

whoisiyush

Member
Jun 10, 2022
7
0
1
India
cPanel Access Level
DataCenter Provider
Hello There,
I have a primary cPanel Server with IP- 1.1.1.1
and hostname and nameserver as follows:
server.example.com
ns1.example.com
ns2.example.com

Hostnames are pointing at my server i.e 1.1.1.1, but due to some issue with my isp's side, DNS is not working.

So I want to use external DNS servers from my primary cPanel Server i.e server.example.com .I read a thread about cPanel DNS Server, so will it work as my primary DNS server? after doing some config?
If yes, then please do tell me the way to do it.


Help Will Be Appreciated
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,585
2,614
363
cPanel Access Level
Root Administrator
Hey there! You may find this post helpful as it sounds like it could be a similar issue:


If you wanted to use an external DNS server, there is no automated way to automatically send all the DNS records over to it. You would need to manually configure the DNS records you require at the remote location.
 

whoisiyush

Member
Jun 10, 2022
7
0
1
India
cPanel Access Level
DataCenter Provider
Sure - that would work very well. Details on the cluster configuration can be found here:

Hey there just wanted to ask MY HOME SERVER’s dns not working at all it is not able resolve domain! so even if i add DNS ONLY server will that server my purpose?

and what ip to enter in nameservers a

like-

ns1.mydomain.com -> Home server(1.1.1.1)
ns2.mydomain.com -> Home Server (1.1.1.1)

how can i use dns only server as my primary resolving server!
 

whoisiyush

Member
Jun 10, 2022
7
0
1
India
cPanel Access Level
DataCenter Provider
nmap gives this output-

root@titan ~]# nmap -sU ns1.exampledomain.com -p 53

Starting Nmap 6.40 ( Nmap: the Network Mapper - Free Security Scanner ) at 2022-06-13 17:09 EDT
Failed to resolve "ns1.trendship.in".
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 21.19 seconds



and if i run nmap for hostname (deafult hostname cprapid one ) it gives this-

[root@titan ~]# nmap -sU 1.1.1.1.cprapid.com -p 53

Starting Nmap 6.40 ( Nmap: the Network Mapper - Free Security Scanner ) at 2022-06-13 17:12 EDT
Nmap scan report for 1.1.1.1.cprapid.com (1.1.1.1)
Host is up (0.15s latency).
PORT STATE SERVICE
53/udp open|filtered domain

Nmap done: 1 IP address (1 host up) scanned in 1.96 seconds
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,585
2,614
363
cPanel Access Level
Root Administrator
Thanks for that - this would indicate that there are two issues happening - port 53 is being filtered on your network and your hostname doesn't have the proper DNS configuration for the nameservers to work. With the port 53 issue, that network is likely not a good option for hosting nameservers.
 

whoisiyush

Member
Jun 10, 2022
7
0
1
India
cPanel Access Level
DataCenter Provider
should i change my isp?

and one more thing

can i use external dns server in order to fix this issue?

something like any other Cpanel dns only server hosted on Aws or any other provider that provides top notch networking?

if yes how?

and also in order to use non Cpanel Dns server how can i do that too?

Help is really appreciated
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,585
2,614
363
cPanel Access Level
Root Administrator
You may be able to use a DNSOnly server and create a DNS cluster to resolve this issue. cPanel servers aren't designed to be used on private networks, as many of the common ports may not be available through your ISP. A datacenter host would have all of the ports open necessary for all tools to function.

You could use a non-cPanel DNS server as well, but you'd need to manually enter your DNS information into that server, which is more work and more possible room for error.
 

whoisiyush

Member
Jun 10, 2022
7
0
1
India
cPanel Access Level
DataCenter Provider
so how to configure cpanel dns only server in order to fix this issue!

more over i’m not on private network, i got 3 static public ips, my whm is accessible all over the globe, if i manually add A record for my server’s ip and using default ns at the registrar

websites are also accessible all over the globe!
 

whoisiyush

Member
Jun 10, 2022
7
0
1
India
cPanel Access Level
DataCenter Provider
Thanks For Helping me Out !
i just wanted to ask one things- pls check below config

i”m setting up ip’s ->

server.example.com -> 1.1.1.1 (Home Server)

Nameservers (Dns only cPanels)

ns1.example.com -> 2.2.2.2
ns2.example.com -> 3.3.3.3

in Basic Web Host Manager Config in Home Server


i will add my nameservers and put ipv4 addresses of the dns servers right?

ns1-> 2.2.2.2
ns2-> 3.3.3.3


is it okay?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,585
2,614
363
cPanel Access Level
Root Administrator
That all sounds fine, but it's important to note that configuring the nameservers in WHM >> Basic Web Host Manager Configuration only creates the records locally and tells cPanel to use those nameservers in future DNS zones you create. You still need to ensure the nameservers are configured in DNS and at the registrar level.