#1  
Old 29th May 2007, 23:57
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Default dns

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 by alexillsley; 5th June 2007 at 01:13.
Reply With Quote
Sponsored Links
  #2  
Old 30th May 2007, 17:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Take a look at the comments at the bottom of http://www.howtoforge.com/howto_bind_chroot_debian .
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th May 2007, 18:23
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Default

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

Any ideas?

Thanks,
Alex
Reply With Quote
  #4  
Old 4th June 2007, 01:53
astra2000 astra2000 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 20
Thanks: 4
Thanked 1 Time in 1 Post
Default

same probleme here
Reply With Quote
  #5  
Old 5th June 2007, 01:12
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Cool

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 by alexillsley; 5th June 2007 at 01:17.
Reply With Quote
  #6  
Old 5th June 2007, 17:06
astra2000 astra2000 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 20
Thanks: 4
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by alexillsley
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

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
Reply With Quote
  #7  
Old 6th June 2007, 01:17
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Smile

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
Reply With Quote
  #8  
Old 6th June 2007, 01:21
astra2000 astra2000 is offline
Junior Member
 
Join Date: Jun 2007
Posts: 20
Thanks: 4
Thanked 1 Time in 1 Post
Default

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

Tnks
Reply With Quote
  #9  
Old 6th June 2007, 01:27
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
 
Default

No problem, glad to help
Reply With Quote
The Following User Says Thank You to alexillsley For This Useful Post:
astra2000 (18th June 2007)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Configuration Problems VMartins Installation/Configuration 10 24th July 2007 14:40
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
No SPF record. beryl Installation/Configuration 6 17th May 2007 19:52
Using a different DNS server with Dynamic DNS CombatGod Installation/Configuration 1 11th May 2006 17:43
Pri & Slave DNS HOWTO (FC4) ppettigrew Suggest HOWTO 0 1st April 2006 15:35


All times are GMT +2. The time now is 11:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.