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.

Slave name server big problem, please help...

Discussion in 'General Discussion' started by x-man, Aug 29, 2005.

  1. x-man

    x-man Well-Known Member

    Joined:
    Jan 25, 2004
    Messages:
    118
    Likes Received:
    0
    Trophy Points:
    16
    I try to setup SLAVE name server on new server but I have big problem, every time when I restart BIND this is error:

    transfer of 'domain.com/IN' from 66.28.xxx.xxx#53: failed while receiving responses: permission denied

    or error is "REFUSED"

    This is what I added in named.conf to server 1 (master name server hosted on that server):

    zone "domain.com" {
    type master;
    file "/var/named/domain.com.db";
    allow-transfer { 66.79.xx.xx; 66.79.xx.xx;}; (this is what I added to default named.conf)
    };


    And this is what I added in named.conf to server 2 (slave name server hosted on that server):

    - first I added zone for domain.com in WHM
    - after that I added this to named.conf:

    options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    allow-notify {66.28.xx.xx;}; (this is what I added)

    };

    and in zone for domain.com:

    zone "domain.com" {
    type slave;
    file "/var/named/domain.com.db";
    masters {66.28.xx.xx;};
    };


    after this restarted BIND on server 1 and server 2 and every time I have error on server 2 (slave name server)...

    Somebody know what is problem?? Something more I must change in named.conf or...?

    I hope so that somebody can help to me...

    Thanks.

    Sorry if my english bad.
     
  2. nickb

    nickb Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Make sure that named has write access on the directory containing the file on the slave server i.e. /var/named/. Named writes the new cache file to a temporary file then renames it to the name specified in named.conf to ensure that the contents are always complete. This is to prevent named loading a partial zone in the event of power failure or similar interrupting the write of the master file.
     
  3. x-man

    x-man Well-Known Member

    Joined:
    Jan 25, 2004
    Messages:
    118
    Likes Received:
    0
    Trophy Points:
    16
    Yes, problem is in that...now I changed chmod for folder 'named' and all work fine!!

    Thank you.
     
Loading...

Share This Page