Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th February 2004, 08:30 AM
frannack's Avatar
frannack Offline
Registered User
 
Join Date: Feb 2004
Location: Paris
Age: 41
Posts: 30
DNS and rndc

Hello,

I'm trying to use rndc after configuring the dns server, that means all this files (rndc.key, named.conf, rndc.conf). But now, each time that I try to use rndc, I get a connection failed. But the key is the same, there's an include /etc/rdnc.key in named.conf and in rndc.conf. Is it possible that I have a problem with my firewall (iptables)? I read somewhere the line controls ... in named.conf make the named deamon use the TCP port 953.

Does anybody have an idea.


thank's

Franck

Last edited by frannack; 25th February 2004 at 05:44 AM.
Reply With Quote
  #2  
Old 24th February 2004, 08:35 AM
mhelios Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Queensland, AU
Posts: 736
You could try temporarily disabling the firewall with `/sbin/service iptables stop` to confirm a firewall problem. If your connection is working with Iptables down, look in the documentation for hints on how what ports to open (953 possibly).
__________________
mhelios@fedoraforum.org
Registered Linux User # 348963
GnuPG KeyID: 0xCE9F8922
Reply With Quote
  #3  
Old 24th February 2004, 08:42 AM
mhelios Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Queensland, AU
Posts: 736
See this for help on configuring rndc:
http://www.redhat.com/docs/manuals/l...bind-rndc.html

You may need to open port 53 as well depending on how you configured things.
__________________
mhelios@fedoraforum.org
Registered Linux User # 348963
GnuPG KeyID: 0xCE9F8922
Reply With Quote
  #4  
Old 24th February 2004, 09:03 AM
frannack's Avatar
frannack Offline
Registered User
 
Join Date: Feb 2004
Location: Paris
Age: 41
Posts: 30
Thanks,

i'll try all this tonight & I'll let you know.

Thanks again for your quich reply

Franck
Reply With Quote
  #5  
Old 25th February 2004, 05:43 AM
frannack's Avatar
frannack Offline
Registered User
 
Join Date: Feb 2004
Location: Paris
Age: 41
Posts: 30
it's not working

Ok, I killed my firewall (iptables) and try to do a rndc reload, then I got a "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." message.

Does any body have an idea.

attached are my conf files

Thanks

Franck

// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address * port 53;
};

// named.conf
controls {
inet * allow { any; } keys { "rndc-key"; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

include "/etc/rndc.key";

// rndc.key
key "rndc-key" {
algorithm hmac-md5;
secret "wXXXXXXXXXXXXeCQ==";
};


// rndc.conf
options {
default-server localhost;
default-key "rndc-key";
};

server localhost {
key "rndc-key";
};

include "/etc/rndc.key";

Last edited by frannack; 25th February 2004 at 02:20 PM.
Reply With Quote
  #6  
Old 26th February 2004, 12:53 PM
mhelios Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Queensland, AU
Posts: 736
Try changing any instances of "rndc-key" to "rndckey". i.e. remove the dash. The reload bind.
__________________
mhelios@fedoraforum.org
Registered Linux User # 348963
GnuPG KeyID: 0xCE9F8922
Reply With Quote
  #7  
Old 26th February 2004, 01:30 PM
frannack's Avatar
frannack Offline
Registered User
 
Join Date: Feb 2004
Location: Paris
Age: 41
Posts: 30
I found the problemsssssssssssss

ok, now it's working, after a long long search.

In the file rndc.key, we must use 127.0.0.1 instead of localhost.
don't ask why, it's in the faq.
I also had to copy the key from rndc.key in /var/named and put it in rndc.key in /etc. I don't know why, I included /etc/rndc.key in named.conf and rndc.conf in /etc but named seems to take the one in /var/named and not the one in /etc.

That's it

hope it can help somebody else.

And thanks again for your ideas

Franck
Reply With Quote
Reply

Tags
dns, rndc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Help ,What is rndc? thanks bear Fedora Focus 4 5th December 2005 02:19 AM
rndc problems amebimus Hardware & Laptops 0 22nd July 2005 12:31 AM
Problem with RNDC hookooekoo Servers & Networking 2 3rd April 2005 06:45 PM


Current GMT-time: 09:35 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat