Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    1

    Default Cpanel Box and 2 external DNS Server Setup ?

    Ok, before I go off scouring the web for information on this, I thought I'd post and see if anybody has a similar setup, and would share their knowledge... Yeah..I'm being lazy.

    The setup:

    1 - Cpanel box
    2 - Seperate DNS boxes as ns1 and ns2 NOT running Cpanel

    What I need it to do:

    When I create an account in WHM it'll transfer and update the zone records for both the Master and Slave nameservers which are each on seperate boxes NOT running Cpanel.

    I currently have 2 cpanel boxes running ns1 and ns2 respectively... Pretty easy to get zones to transfer. Just not sure how to do it on two external dns boxes not running cpanel.

    Any insight or a hand held walkthrough would be greatly appreciated. Plus if you're ever in Chicago, I'll buy ya enough Tequila to drown an elephant. ;-)

    tia,

    Yong

  2. #2
    Member
    Join Date
    Oct 2002
    Posts
    104

    Default Any progress?

    yongkyung, any progress on this post?

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    3

    Default NO Responses

    Nothing yet man.

    Starting the project in another week. Haven't really researched any further. Was hoping that somebody had a quick and easy walkthrough.

    Looks like I'll be hitting the Bind books for now. I'll post 'my' process after I've gotten it all working.

    peace,

    Yong

  4. #4
    Member
    Join Date
    Feb 2006
    Location
    Seattle, Washington, United States
    Posts
    17

    Default Did you figure this out?

    I'd be really interested in your solution for this if you have one. Thanks!

  5. #5
    ldm
    ldm is offline
    Registered User
    Join Date
    Sep 2010
    Posts
    4

    Default

    Quote Originally Posted by yongkyung View Post
    Ok, before I go off scouring the web for information on this, I thought I'd post and see if anybody has a similar setup, and would share their knowledge... Yeah..I'm being lazy.

    The setup:

    1 - Cpanel box
    2 - Seperate DNS boxes as ns1 and ns2 NOT running Cpanel

    What I need it to do:

    When I create an account in WHM it'll transfer and update the zone records for both the Master and Slave nameservers which are each on seperate boxes NOT running Cpanel.

    I currently have 2 cpanel boxes running ns1 and ns2 respectively... Pretty easy to get zones to transfer. Just not sure how to do it on two external dns boxes not running cpanel.

    Any insight or a hand held walkthrough would be greatly appreciated. Plus if you're ever in Chicago, I'll buy ya enough Tequila to drown an elephant. ;-)

    tia,

    Yong
    I tried to do a similar setup - with the cPanel free DNSONLY being used for a DNS, however for some reason it's refusing to connect, even though I did everything according to the cPanel's documentation.

    I don't think it will work with BIND alone because you need to create the slave zones configs for each primary domain zone created at the cPanel, something BIND won't do on it's own - cPanel's DNSONLY is supposed to do exactly that.

    Otherwise you need a custom script that will create these zones for BIND.

  6. #6
    Member
    Join Date
    Oct 2001
    Posts
    93

    Default

    i've been doing this for years....

    1) create an include file for servername.zones

    2) put this script in /var/named/zones.pl
    #!/usr/bin/perl

    my $outfile ="/var/named/servername.zones";
    my @files = glob("/var/named/*");
    open (OUTFILE, ">$outfile");
    foreach my $file (@files)
    {
    $file =~ s/\/var\/named\///;
    my ($file_wo_ext) = ($file =~ /^(.+?)\.db$/);
    unless ($file_wo_ext eq "")
    {
    #print OUTFILE join("\t", ('zone ', $file_wo_ext, "SERVERNAME/$file")).

    print OUTFILE "zone \"$file_wo_ext\" \{
    type master\;
    file \"\/var\/named\/colo3\/$file\"\;
    \}\;\n
    ";
    }
    }
    close(OUTFILE);


    3) make a rsyn script to sync the /var/named folder to the include folder on /var/named/SERVERNAME/

    your /etc/named/conf file will include the files in your /var/named/SERVERNAME/servername.zones files

    bada bing..... the reason why I put SERVERNAME is because I have a lot of servers...so be sure to replace SERVERNAME with the servername (only part far left to the octet..so server5.yourdomain.com would be server5)
    Last edited by MrHits; 09-13-2010 at 09:33 PM.
    Q: "I heard if you play the NT-CD backwards, you get a satanic message."
    A: "That's nothing, if you play it forward, it installs NT"

  7. #7
    Member
    Join Date
    Oct 2001
    Posts
    93

    Default

    oh ya..and it should be noted...i recently switched to using the cpanel only dns setup with clustering..... I like it a lot.. any reason why you don't want to use it? its free!
    Q: "I heard if you play the NT-CD backwards, you get a satanic message."
    A: "That's nothing, if you play it forward, it installs NT"

Similar Threads & Tags
Similar threads

  1. External DNS Setup
    By pokermagic in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-26-2011, 08:32 AM
  2. DNS setup with external servers (dnsonly)
    By sp3ctre69 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 03-22-2011, 11:00 AM
  3. external mail server will not resolve or setup
    By adtastichosting in forum E-mail Discussions
    Replies: 3
    Last Post: 12-19-2009, 07:03 AM
  4. external mySQL Server. How setup Cpanel ?
    By HappyAlex in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-19-2006, 12:10 AM
  5. External DNS without Cpanel server
    By garak in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-01-2004, 05:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube