dns

Discussion in 'Server Operation' started by alexillsley, May 29, 2007.

  1. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Hi,
    Ive got a dns server on #### that works perfectly fine, but when i copy named.conf and the dns zones (pri's) to my #### DNS server i get errors, it looks like its something to do with this rndc thing, however its not configured at all in named.conf. Heres the errors i get:
    Code:
    server2:~# /etc/init.d/bind9 restart
    Stopping domain name service...: bindrndc: connect failed: 127.0.0.1#953: connection refused
     failed!
    Starting domain name service...: bind failed!
    server2:~#
     
    Thanks,
    Alex
     
    Last edited: Jun 5, 2007
  2. falko

    falko Super Moderator ISPConfig Developer

  3. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Still doesnt work,

    I change the user in the options from bind to nobody and it fails still

    I changed it back and checked the permssions were the bind user

    Still no luck:confused:

    Any ideas?

    Thanks,
    Alex
     
  4. astra2000

    astra2000 New Member

    same probleme here:(
     
  5. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Hi,
    To fix the problem, first search for bind errors in /var/log/demons

    Bind uses a program called rndc to stop and restart bind, but bind itself is not started using rndc.

    I assumed when bind failed to start, it was for the same error as error message i was given when i restarted bind though they were different errors.

    The rncd error messages is give if either bind isnt running or port 953 on localhost (127.0.0.1) is blocked.

    Bind wasnt running for me so, I check the error logs and found there was a syntax error in named.conf, i fixed this and it all worked again

    Thanks,
    Alex
     
    Last edited: Jun 5, 2007
  6. astra2000

    astra2000 New Member

    true... here is a quote

     
  7. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    Hi,
    Run the following:
    Code:
    chown root:root /etc/bind/rndc.key
    chmod 755 /etc/bind/rndc.key
    
    Then try restarting,
    Hope it works,
    Alex
     
  8. astra2000

    astra2000 New Member

    I just open the port 953 like u sayet and works fine...

    Tnks :D
     
  9. alexillsley

    alexillsley ISPConfig Developer ISPConfig Developer

    No problem, glad to help:)
     

Share This Page