campsoupster

Registered
Nov 18, 2006
3
0
151
Sorry for the newbie post.

I'm confused about cPanel's DNS clustering. All I want to do is add secondary nameservers using DynDNS.com's DNS services. My server is running cPanel and BIND. It provides the master DNS entries for the domain. The primary nameserver is ns1.mydomain.com.

Without dealing with cPanel's clustering tools, can I just manually edit /etc/named.conf for the domain by adding an "allow-transfer" line as follows:

zone "mydomain.com" {
type master;
file "mydomain.com.db";
allow-transfer { 1.2.3.4; 2.3.4.5; 3.4.5.6; 4.5.6.7; };
};

(Where 1.2.3.4, etc., are the IP addresses for DynDNS's nameservers.)

From what I understand DynDNS will do the rest of the work - as long as the "allow-transfer" is in place. (see http://www.dyndns.com/services/dns/secdns/howto.html).

Will this work with cPanel? I've encountered some issues in the past when trying to update DNS configurations manually on a cPanel server.

Thanks.
 

pakogah

Member
Nov 6, 2008
16
0
51
me to also want to do the same, I do not what rent a vps just to install cpanel dns-only
I rather use free dns hosting that gave secondary/slave dns hosting
where is the /etc/named.conf template file that won't change even cpanel upgrade / added new account
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
If you add entries to /etc/named.conf file manually, they should not be overwritten by adding new zones for those entries. That file isn't rebuilt each time unless you run the rebuild script manually, which most people do not run that rebuild script.

If you want to know what script you should not run unless you do want to wipe your manual entries, it is /scripts/rebuilddnsconfig one. Thus, do not run that script at any point unless you want to wipe your manual changes. The only time /scripts/rebuilddnsconfig should be run would be if named.conf became corrupted and you needed to regenerate it using the existing /var/named/ zone files.
 
  • Like
Reactions: Spork Schivago