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.

Need help with DNS, please!

Discussion in 'Bind / DNS / Nameserver Issues' started by bert, Feb 26, 2002.

  1. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    I moved the master DNS server to another Cpanel server earlier today. I have done this about 4 times now in the past year, however this time, the new slave server (which used to be the master) is not getting the proper transfer. It is getting the named.conf file and it does not show anything wrong, but the files inside /var/named are not being transferred.

    Any suggestions are very much appreciated. The IP address change has still not propagated completely, so I need this server still to act as master for the outside world.
     
  2. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    Sh***t. I deleted my named.local and named.ca files. Can someone also please post those files here? Thanks very much.

    /var/named/named.local
    /var/named/named.ca
     
  3. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    Nevermind. I fixed it. The transfer did not work because the file named.ca was missing therefore named could not start.

    Thanks.
     
  4. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    OK, still the same problem.

    bash: /scripts/dnstranfer: No such file or directory
    root@server17 [~]# /scripts/dnstransfer
    Rebuilding DNS Zones List from master server .....
    stdin: is not a tty
    named.conf 100% |**********************************************************************************************************| 72790 00:00
    ndc: reload command successful
    Rebuild Complete


    But, nothing inside /var/named gets transferred unless I explicitly restart named:
    /etc/rc.d/init.d/named stop
    /etc/rc./dinit.d/named start

    The command above does the trick, but just the dnstransfer script with ndc reload does not transfer anything. /etc/named.conf on the other hand is being transferred without problems.

    Nick, please ??
     
  5. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    Are you trying to transfer between a bind 8 server (RH 6.2) and a bind 9 server (RH 7.2)?
     
  6. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    Nope, not at all. Both, primary and secondary run on 7.2 with bind 9.

    It, for some reason does not transfer the zones when using /scripts/dnstransfer. Only transfers the named.conf file. :(
     
  7. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Bert,

    Yes, this is what the script does, it only updates the named.conf file on the master server to make the entries slaves and then moves over the named.conf file. Bind recreates the actual zone files using the named.conf file that was moved and the settings on the master name server. That is a zone transfer.
     
  8. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    jumpdomain,

    The files in /var/named are not getting transferred or recreated by named on the secondary DNS. This is really what the problem is.
     
  9. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Bert,

    We always do a:
    /etc/rc.d/init.d/named stop
    /etc/rc.d/init.d/named start

    To transfer over the new zones after the named.conf is transferred as that does it instantly... I do not know if a ndc reload will eventually bring them over. How long did you wait to see if they were moved over? I know an ndc reload takes some time to update an existing zone on the slave server when you update the serial number.
     
  10. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    Well, it is good to know that you restart named to get it done. I am used to just doing /scripts/dnstransfer and seeing the files going into the /var/named directory.

    I could literally remove all the files inside of /var/named , then do a dnstransfer and could see all the files again in /var/named in about 10 minutes. We don't have more than about 2000 zone files. Now, we have to restart name, which is not a big deal, but don't know why the difference.

    I guess I will stop wondering and will live with it ;)
     
Loading...

Share This Page