The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

editing named.conf

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

  1. campsoupster

    campsoupster Registered

    Joined:
    Nov 18, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. pakogah

    pakogah Member

    Joined:
    Nov 6, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    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

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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.
     
    Spork Schivago likes this.
Loading...

Share This Page