How to setup secondary dns in cPanel

Elizabeta

Well-Known Member
Mar 21, 2018
266
36
78
Mostar
cPanel Access Level
Root Administrator
Hello,

I have a cPanel&WHM 98.0.8. My user who have domain on my cPanel wants to set secondary dns for his domain. Primary dns is cpanel dns.
How to do that?

Best regards,
Elizabeta
 

Elizabeta

Well-Known Member
Mar 21, 2018
266
36
78
Mostar
cPanel Access Level
Root Administrator
Hello,

Where do I setup a secondary name server for just one domain?On the WHM I specified my two name servers but how/where do I go to specify what IP #\'s they are to \'set them up\' ?

BR,
Elizabeta
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
945
423
363
cPanel Access Level
DataCenter Provider
You can't create/define name servers in cPanel/WHM. You have to do that at your domain registrar (the domain registrar of the domain that you are using for your name servers). So if you have ns1/ns2.example.com you have to go to the registrar for example.com and they will have a web page that will allow you register an IP for ns1 and another IP for ns2.
 

Elizabeta

Well-Known Member
Mar 21, 2018
266
36
78
Mostar
cPanel Access Level
Root Administrator
The primary dns for this domain is cpanel dns.
I want to set up a secondary dns for this domain at another location (no cPanel)


How to tell the primary dns on cPanel where the secondary dns is?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,598
2,620
363
cPanel Access Level
Root Administrator
As @ffeingol mentioned, there isn't any relation between your cPanel server and what nameservers are used for the domain. If you wanted a backup nameserver you would have to add that at the registrar level. If the DNS fails, that is all handled by the DNS lookups and nameserver system, and not by cPanel.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
945
423
363
cPanel Access Level
DataCenter Provider
The easiest way would be to set up the second nameserver to be a cPanel DNS only server (which is a free license). You can then set up a cPanel DNS cluster and whenever something is changed in your cPanel server it's synced to the DNS only server. cPanel doc on DNS clustering DNS Cluster | cPanel & WHM Documentation
 

Elizabeta

Well-Known Member
Mar 21, 2018
266
36
78
Mostar
cPanel Access Level
Root Administrator
The easiest way would be to set up the second nameserver to be a cPanel DNS only server (which is a free license). You can then set up a cPanel DNS cluster and whenever something is changed in your cPanel server it's synced to the DNS only server. cPanel doc on DNS clustering DNS Cluster | cPanel & WHM Documentation
The user on cPanel wants only the primary dns to be cPanel and the secondary on another external location...
What do I need to do at WHM for this to work?

Thank you!

Best regards,
Elizabeta
 

Elizabeta

Well-Known Member
Mar 21, 2018
266
36
78
Mostar
cPanel Access Level
Root Administrator
Should I especially emphasize on cPanel that the primary dns is cPanel, and the secondary in another location?

Does anything need to be specially configured on WHM?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,598
2,620
363
cPanel Access Level
Root Administrator
There is not a way to configure that in the DNS system, with or without cPanel. DNS doesn't have "primary" and "secondary" servers - the DNS and whois lookup will happen, and the DNS server it sees first is the one that will respond to the request. Whether that is on the cPanel machine or remote isn't something that is easily controlled.

If you had a DNS cluster configured, that would give you failover functionality - if one server didn't respond to the DNS request for some reason, the other servers would continue to function, but that doesn't sound like what you're looking for.