Skip to main content

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

Comments

13 comments

  • cPRex Jurassic Moderator
    Hey there! You may find this post helpful as it sounds like it could be a similar issue:
    -1
  • whoisiyush
    Thanks for replying. what if i use a separate server and make it Cpanel DNS only and add it to my cluster? ,Sync all records?
    0
  • cPRex Jurassic Moderator
    Sure - that would work very well. Details on the cluster configuration can be found here:
    0
  • whoisiyush
    Sure - that would work very well. Details on the cluster configuration can be found here: 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!
    0
  • cPRex Jurassic Moderator
    If the server isn't able to resolve a domain at all, you'll want to look at the test from my first post to see if it is a local configuration issue. It's possible your network may not support DNS queries.
    0
  • whoisiyush
    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
    0
  • cPRex Jurassic Moderator
    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.
    0
  • whoisiyush
    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
    0
  • cPRex Jurassic Moderator
    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.
    0
  • whoisiyush
    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!
    0
  • cPRex Jurassic Moderator
    You can read more about the cPanel DNSCluster system here:
    0
  • whoisiyush
    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?
    0
  • cPRex Jurassic Moderator
    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.
    0

Please sign in to leave a comment.