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.

Help to configure slave dns server

Discussion in 'Bind / DNS / Nameserver Issues' started by zone-vip, Oct 27, 2008.

  1. zone-vip

    zone-vip Member

    Joined:
    Oct 16, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Franconville, Val-d'Oise, France
    Hi,

    I have a "problem" on a CentOS with cPanel server who have this named.conf :

    include "/etc/rndc.key";

    controls {
    inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
    };


    options {

    directory "/var/named"; // the default
    dump-file "data/cache_dump.db";
    statistics-file "data/named_stats.txt";
    };

    logging {
    channel default_debug {
    file "data/named.run";
    severity dynamic;
    };
    };


    view "localhost_resolver" {

    match-clients { 127.0.0.0/24; };
    match-destinations { localhost; };
    recursion yes;

    zone "." IN {
    type hint;
    file "/var/named/named.ca";
    };

    include "/var/named/named.rfc1912.zones";
    };

    view "internal" {
    match-clients { localnets; };
    match-destinations { localnets; };
    recursion yes;

    zone "." IN {
    type hint;
    file "/var/named/named.ca";
    };


    zone "myzone1.com" {
    type master;
    file "/var/named/myzone1.com.db";
    };

    };

    view "external" {

    recursion no;

    zone "." IN {
    type hint;
    file "/var/named/named.ca";
    };


    zone "myzone1.com" {
    type master;
    file "/var/named/myzone1.com.db";
    };

    };

    All masters zone are ok but when I try to put a slave zone of an external server on external or internal view :
    zone "myzone2.com" { type slave; file "/var/named/slaves/myzone2.com.db"; masters { IP.IP.IP.IP; }; };

    I have no error with checkconf but the master zone is not downloaded.

    Someone can help me ?

    PS :
    - Master DNS server is a MS DNS Servr
    - No firewall
    - Slave dns server is autorised to transfert zone from master (on the master dns server config)
    - Before we had a FreeBSD on this IP and we don't have any problem.

    Thanks a lot !
     
  2. caball

    caball Registered

    Joined:
    Feb 29, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    BIND is fastidious as regard for his configuration file so try to change this to:

    zone "myzone2.com" {
    type slave;
    file "/var/named/slaves/myzone2.com.db";
    masters { IP.IP.IP.IP; };
    };

    Also make sure that you have an allow-transfer { IP:IP:IP:IP; }; clause in master zone for myzone2.com.
     
  3. zone-vip

    zone-vip Member

    Joined:
    Oct 16, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Franconville, Val-d'Oise, France
    Thanks for your help.

    Always the same problem :confused:
     
  4. caball

    caball Registered

    Joined:
    Feb 29, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hm, interesting. :)
    Did you try to change the serial number on the master zone file?
     
  5. zone-vip

    zone-vip Member

    Joined:
    Oct 16, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Franconville, Val-d'Oise, France
    Yesterday I have modify /var/named/chroot/etc/named.conf and not /etc/named.conf but I don't understand why I have two conf files and when I modify named.conf of chroot, the named.conf in /etc/ is replicated.

    WHM operation ?

    Now my DNS Server respond for all zone but I have messages that I don't understant on my run log file :

    For exemple :
    client IP_OF_MY_SERVER#61015: view external: received notify for zone 'myslavedns.com'
     
Loading...

Share This Page