#1  
Old 14th September 2006, 23:47
Renegade Renegade is offline
Junior Member
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default DNS Issue

Hello

I got an issue with rndc. I've read a lot about it en there are many people with the same problem but i can't solve it. I generated a new key but that wasn't the solution. The key i use is the same in named.conf;rndc.conf and rndc.key

on my first dns i use ubuntu 5.1o en my second dns ubuntu 6.0.6.

The error i got is.

rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.

When i check the version with: rndc -V the first dns tells me that i'm using Version: 9.3.1 and the second dns is using Version: 9.3.2

Could this be the problem and if it is how can i solved the problem?
Reply With Quote
Sponsored Links
  #2  
Old 15th September 2006, 20:05
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's in the logs? What's in your named.conf?
__________________
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 15th September 2006, 22:19
Renegade Renegade is offline
Junior Member
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default named.conf

# cat /etc/bind/named.conf

key "rndc-key" {
algorithm hmac-md5;
secret "5Zmlv/bRToWX6Ilr0lXjbw==";
};

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};

# cat /etc/bind/rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "5Zmlv/bRToWX6Ilr0lXjbw==";
};

options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;

# cat /etc/bind/rndc.key
key "rndc-key" {
algorithm hmac-md5;
secret "5Zmlv/bRToWX6Ilr0lXjbw==";
};


And in my sylog:

Sep 15 22:12:41 ns1 named[7935]: invalid command from 127.0.0.1#53907: bad auth
Sep 15 22:12:44 ns1 named[16949]: starting BIND 9.3.1 -u bind -t /var/lib/named
Sep 15 22:12:44 ns1 named[16949]: found 1 CPU, using 1 worker thread
Sep 15 22:12:44 ns1 named[16949]: loading configuration from '/etc/bind/named.conf'
Sep 15 22:12:44 ns1 named[16949]: listening on IPv4 interface lo, 127.0.0.1#53
Sep 15 22:12:44 ns1 named[16949]: binding TCP socket: address in use
Sep 15 22:12:44 ns1 named[16949]: listening on IPv4 interface eth2, 87.249.102.250#53
Sep 15 22:12:44 ns1 named[16949]: binding TCP socket: address in use
Sep 15 22:12:44 ns1 named[16949]: /etc/bind/named.conf:131: couldn't add command channel 127.0.0.1#953: address in use
Sep 15 22:12:44 ns1 named[16949]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1

I'll hope you can help me.

Last edited by Renegade; 16th September 2006 at 15:51.
Reply With Quote
  #4  
Old 16th September 2006, 23:52
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by Renegade
And in my sylog:

Sep 15 22:12:41 ns1 named[7935]: invalid command from 127.0.0.1#53907: bad auth
Sep 15 22:12:44 ns1 named[16949]: starting BIND 9.3.1 -u bind -t /var/lib/named
Sep 15 22:12:44 ns1 named[16949]: found 1 CPU, using 1 worker thread
Sep 15 22:12:44 ns1 named[16949]: loading configuration from '/etc/bind/named.conf'
Sep 15 22:12:44 ns1 named[16949]: listening on IPv4 interface lo, 127.0.0.1#53
Sep 15 22:12:44 ns1 named[16949]: binding TCP socket: address in use
Sep 15 22:12:44 ns1 named[16949]: listening on IPv4 interface eth2, 87.249.102.250#53
Sep 15 22:12:44 ns1 named[16949]: binding TCP socket: address in use
Sep 15 22:12:44 ns1 named[16949]: /etc/bind/named.conf:131: couldn't add command channel 127.0.0.1#953: address in use
Sep 15 22:12:44 ns1 named[16949]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1

I'll hope you can help me.
Did you kill all previous BIND processes before you tried to start it?
__________________
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
  #5  
Old 19th September 2006, 20:29
Renegade Renegade is offline
Junior Member
 
Join Date: May 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks Falko

I didn't know the solution was so easy. Thanks
Reply With Quote
  #6  
Old 3rd November 2006, 18:44
ilushkin ilushkin is offline
Junior Member
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Renegade
I didn't know the solution was so easy. Thanks
what was the solution? can you help me please. I have this in my syslog:
11:19:16 server1 named[5676]: binding TCP socket: address in use
Nov 3 11:19:16 server1 named[5676]: listening on IPv4 interface eth0, 192.168.1.3#53
Nov 3 11:19:16 server1 named[5676]: binding TCP socket: address in use
Nov 3 11:19:16 server1 named[5676]: couldn't add command channel 127.0.0.1#953: address in use
Nov 3 11:19:16 server1 named[5676]: couldn't add command channel ::1#953: address in use
I have Ubuntu 6.10 server fresh install
Reply With Quote
  #7  
Old 4th November 2006, 16:56
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
netstat -tap
? Do you get any error messages when you restart BIND?
__________________
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
The Following User Says Thank You to falko For This Useful Post:
jon (19th February 2009)
  #8  
Old 19th February 2009, 14:15
jon jon is offline
Member
 
Join Date: Jan 2007
Location: Canada
Posts: 78
Thanks: 11
Thanked 4 Times in 4 Posts
Send a message via Skype™ to jon
 
Default

This also helped me after an upgrade from Etch to Lenny, thanks!
Reply With Quote
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
Mail issue with Postfix + Amavis + Spamassassin mhxy594 Server Operation 3 21st August 2006 06:50
Big issue with suPHP ddelbia General 13 23rd June 2006 12:44
Apache Setup Issue Using Perfect Setup Suse10.1 E.L. Hibee HOWTO-Related Questions 8 12th June 2006 15:45
ISPCONFIG Logn Issue mainester Installation/Configuration 2 31st January 2006 20:46
Outlook 2003 issue with courier-pop3 RotHorseKid Installation/Configuration 6 7th December 2005 20:35


All times are GMT +2. The time now is 13:09.


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