LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-26-2011, 07:12 AM   #1
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Caching name server issues


Hello,

I am having no end of trouble seting up a caching name server.

I'm using RHEL6 x64 and BBIND 9.7.0-P2-RedHat-9.7.0-5.P2.el6

I have followed this tutorial (http://www.redhat.com/magazine/025nov06/features/dns/)

Yet when it comes to testing it with dig I'm having no joy.

iptables is off on both servers (master and caching) and SELINUX is set to permissive on both servers

/etc/resolv.conf in the caching server is pointing to 127.0.0.1

The ip address of the master server is 10.168.20.229

If I try
Code:
dig @10.168.20.229 subversion.example.com
I get this
Quote:
; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6 <<>> @10.168.20.229 subversion.example.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8974
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;subversion.example.com. IN A

;; ANSWER SECTION:
subversion.example.com. 10800 IN A 10.168.20.228

;; AUTHORITY SECTION:
example.com. 10800 IN NS ns2.example.com.

;; ADDITIONAL SECTION:
ns2.example.com. 10800 IN A 10.168.20.229

;; Query time: 1 msec
;; SERVER: 10.168.20.229#53(10.168.20.229)
;; WHEN: Thu May 26 12:51:29 2011
;; MSG SIZE rcvd: 90

If try
Code:
dig subversion.example.com
I get
Quote:
; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6 <<>> @10.168.20.227 subversion.example.com
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
There are no errors in the logs

Any ideas?

TIA

named.conf file for caching server

Quote:
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

forwarders {10.168.20.229;};
forward only;

};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

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

include "/etc/named.rfc1912.zones";
named.conf extract from master server

Quote:
zone "example.com" IN {
type master;
file "example.com.zone";
allow-transfer {any;};
};
 
Old 05-26-2011, 09:44 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Is named running?
 
Old 05-26-2011, 10:07 AM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
; <<>> DiG 9.7.0-P2-RedHat-9.7.0-5.P2.el6 <<>> @10.168.20.227 subversion.example.com
you're not querying 127.0.0.1
 
Old 05-27-2011, 02:06 AM   #4
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Original Poster
Rep: Reputation: 14
@smallpond

yes

@Berhanie

10.168.20.227 is the ip address of the caching server on the interface that is used to communicate with the DNS server, I guess that is why it's showing as 10.168.20.227.

The issue is related to dnssec as I commented the lines related to it out and it works fine. I guess I need to do a bit of reading on DNSSEC

Last edited by manyrootsofallevil; 05-27-2011 at 02:52 AM.
 
  


Reply



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
caching name server wisetech Linux - Software 1 02-26-2011 03:10 AM
problem in caching-only server author_unknown Linux - Software 8 10-08-2008 06:59 AM
Gateway + Caching Server zaheer Linux - Networking 5 07-08-2007 01:54 PM
Caching Only name SErver shipon_97 Linux - Networking 1 02-27-2006 01:53 AM
Caching DNS server error (lame server resolving) Iggyboo Linux - Networking 1 02-24-2005 03:43 AM

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

All times are GMT -5. The time now is 07:15 AM.

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