LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2006, 07:25 PM   #16
generic_user
Member
 
Registered: Sep 2006
Location: San Francisco, Ca.
Distribution: Redhat/Fedora/CentOS
Posts: 39

Rep: Reputation: 15

Quote:
Originally Posted by vasillalov
I am positive:

$rpm -qa | grep bind
bind-9.2.4-16.EL4
bind-libs-9.2.4-16.EL4
bind-utils-9.2.4-16.EL4
ypbind-1.17.2-8


I am running Centos 4.4 Final. Here is the /etc/rndc.key:

key "rndckey" {
algorithm hmac-md5;
secret "blahblahblah";
};
um, you might want to edit your post and take that secret part out... It can be used to take over your dns server.

Btw, it looks good... One thing, you might need to explicitely specify the -c -s -p and -k parameters when you run rndc... I didn't have to with fc5 though.

Also, run 'tcpdump -s 0 -X -n -nn -i lo -l' (or run ethereal if you've got xwindows) when you run rndc to make sure that it is communicating correctly with bind. (It might be wise to turn off iptables for this test too, just to make sure it's not a firewall issue). You're looking for back and forth communication... Finally, whats the state of selinux on your system?
 
Old 09-17-2006, 08:33 PM   #17
vasillalov
LQ Newbie
 
Registered: Jul 2004
Posts: 16

Original Poster
Rep: Reputation: 0
I removed the secret. Thanks!

Selinux is OFF!

I thought about the firewall issue too but that's not it. I tried either way and rndc won't connect.

tcpdump -s 0 -X -n -nn -i lo -l

this starts dumping tons of junk but basically I can see its the DNS resolution taking action. So I guess this is working...
 
Old 09-18-2006, 12:32 AM   #18
generic_user
Member
 
Registered: Sep 2006
Location: San Francisco, Ca.
Distribution: Redhat/Fedora/CentOS
Posts: 39

Rep: Reputation: 15
Quote:
Originally Posted by vasillalov

tcpdump -s 0 -X -n -nn -i lo -l

this starts dumping tons of junk but basically I can see its the DNS resolution taking action. So I guess this is working...
Sorry, I didn't think your loopback had much communication... add " port 53 and port 953" to that tcpdump command to show only named traffic. If you want to test rndc, then only add " port 953"

rndc -k /etc/rndc.key -s 127.0.0.1 -p 953 flush

named is listening to port 953 as well as 53 right?

netstat -a -n -p|grep "named"

Btw, I'm using 9.3.2 ... it's possible that earlier versions of rndc lack features, or perhaps you need to specify some extra commands in your named.conf file to enable rndc due to how Centos compiled bind.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
DNS-Information and Configuration rbh123 Red Hat 1 01-09-2006 05:16 AM
Looking for Split DNS Information using Bind jrbush82 Linux - Networking 2 04-22-2005 08:00 AM
Linux DHCP information for DNS tisource Linux - Networking 5 10-31-2004 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration