PDA

View Full Version : dns


alexillsley
30th May 2007, 00:57
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:

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

falko
30th May 2007, 18:14
Take a look at the comments at the bottom of http://www.howtoforge.com/howto_bind_chroot_debian .

alexillsley
30th May 2007, 19:23
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

astra2000
4th June 2007, 02:53
same probleme here:(

alexillsley
5th June 2007, 02:12
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

astra2000
5th June 2007, 18:06
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
true... here is a quote

un 2 03:51:20 debian lwresd[8127]: none:0: open: /etc/bind/rndc.key: permission denied
Jun 2 03:51:20 debian lwresd[8127]: couldn't add command channel 127.0.0.1#953: permission denied
Jun 2 03:51:20 debian lwresd[8127]: none:0: open: /etc/bind/rndc.key: permission denied
Jun 2 03:51:20 debian lwresd[8127]: couldn't add command channel ::1#953: permission denied
Jun 2 03:51:20 debian lwresd[8127]: lwres listening on 127.0.0.1#921

alexillsley
6th June 2007, 02:17
Hi,
Run the following:

chown root:root /etc/bind/rndc.key
chmod 755 /etc/bind/rndc.key


Then try restarting,
Hope it works,
Alex

astra2000
6th June 2007, 02:21
I just open the port 953 like u sayet and works fine...

Tnks :D

alexillsley
6th June 2007, 02:27
No problem, glad to help:)