Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

editing named.conf

Discussion in 'General Discussion' started by campsoupster, Jan 5, 2007.

  1. campsoupster

    campsoupster Registered

    Nov 18, 2006
    Likes Received:
    Trophy Points:
    Sorry for the newbie post.

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

    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 "" {
    type master;
    file "";
    allow-transfer {;;;; };

    (Where, 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

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

  2. pakogah

    pakogah Member

    Nov 6, 2008
    Likes Received:
    Trophy Points:
    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
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Spork Schivago likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice