LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-13-2011, 05:25 AM   #1
YaaY
LQ Newbie
 
Registered: Nov 2009
Posts: 15

Rep: Reputation: 1
named - caching server problems


Hi,

I'm trying to configure a simple caching server and receive some errors wich I dond understand why.

The network I'm working in is like this :
Desktop (192.168.56.100) -> Server (192.168.56.10) -> Google's DNS (8.8.8.8)

named.conf :
[root@Server etc]# cat /etc/named.conf
options {
listen-on port 53 { 192.168.56.0/24; 127.0.0.1; };
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 { 127.0.0.1; 192.168.56.0/24; };
recursion yes;
forward only;
forwarders { 8.8.8.8; };

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

bindkeys-file "/etc/named.iscdlv.key";
};

view "localhost_resolver"
{
match-clients { localhost; };
recursion yes;

# all views must contain the root hints zone:
zone "." IN {
type hint;
file "/var/named/named.ca";
};

include "/etc/named.rfc1912.zones";
};

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

when running nslookup :
[root@kickstartp1 etc]# nslookup www.google.com
Server: 127.0.0.1
Address: 127.0.0.1#53

** server can't find www.google.com: SERVFAIL

In the messages file :
Nov 13 13:25:03 kickstartp1 named[3893]: error (chase DS servers) resolving 'com/DS/IN': 8.8.8.8#53
Nov 13 13:25:03 kickstartp1 named[3893]: error (no valid DS) resolving 'www.google.com/A/IN': 8.8.8.8#53
Nov 13 13:25:03 kickstartp1 named[3893]: error (chase DS servers) resolving 'com/DS/IN': 8.8.8.8#53
Nov 13 13:25:03 kickstartp1 named[3893]: error (no valid DS) resolving 'www.google.com/A/IN': 8.8.8.8#53

Any Idea ?
Thanks ahead.
 
Old 11-13-2011, 06:04 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
yes,

try removing or disabling:
Code:
forward only;
forwarders { 8.8.8.8; };
because this is no IP address with DNS server,
you don't want or need this IP, use your ISP's DNS address or just don't use "forwarders" to try out if it works.
 
Old 11-13-2011, 06:23 AM   #3
YaaY
LQ Newbie
 
Registered: Nov 2009
Posts: 15

Original Poster
Rep: Reputation: 1
Thanks - It works.

But I cant understand how the serve knows to forward the request ? to where does it forward it ?
 
Old 11-13-2011, 08:37 AM   #4
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
well, it depends whether you have configured to your server
"/etc/resolv.conf"
nameserver 127.0.0.1 <-- means your 'localhost' to respond

or
nameserver 123.324.546.567 <-- your ISP's DNS IP (this is just an example IP)

then,
you configured your "named.conf" to use
Code:
# all views must contain the root hints zone:
zone "." IN {
type hint;
file "/var/named/named.ca";
};
which tells : for all other addresses go look at "named.ca".

I use the "root.cache" (or bind.cache or whatever you want to name it)
where it has all the root DNS servers addresses:
Code:
;       This file holds the information on root name servers needed to
;       initialize cache of Internet domain name servers
;       (e.g. reference this file in the "cache  .  <file>"
;       configuration file of BIND domain name servers).
;
;       This file is made available by InterNIC 
;       under anonymous FTP as
;           file                /domain/named.cache
;           on server           FTP.INTERNIC.NET
;       -OR-                    RS.INTERNIC.NET
;
;       last update:    Jun 8, 2011
;       related version of root zone:   2011060800
;
; formerly NS.INTERNIC.NET
;
.                        3600000  IN  NS    A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET.      3600000      A     198.41.0.4
A.ROOT-SERVERS.NET.      3600000      AAAA  2001:503:BA3E::2:30
;
; FORMERLY NS1.ISI.EDU
;
.                        3600000      NS    B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET.      3600000      A     192.228.79.201
;
; FORMERLY C.PSI.NET
;
.                        3600000      NS    C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET.      3600000      A     192.33.4.12
;
; FORMERLY TERP.UMD.EDU
;
.                        3600000      NS    D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET.      3600000      A     128.8.10.90
D.ROOT-SERVERS.NET.	 3600000      AAAA  2001:500:2D::D
;
; FORMERLY NS.NASA.GOV
;
.                        3600000      NS    E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET.      3600000      A     192.203.230.10
;
; FORMERLY NS.ISC.ORG
;
.                        3600000      NS    F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET.      3600000      A     192.5.5.241
F.ROOT-SERVERS.NET.      3600000      AAAA  2001:500:2F::F
;
; FORMERLY NS.NIC.DDN.MIL
;
.                        3600000      NS    G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET.      3600000      A     192.112.36.4
;
; FORMERLY AOS.ARL.ARMY.MIL
;
.                        3600000      NS    H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET.      3600000      A     128.63.2.53
H.ROOT-SERVERS.NET.      3600000      AAAA  2001:500:1::803F:235
;
; FORMERLY NIC.NORDU.NET
;
.                        3600000      NS    I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET.      3600000      A     192.36.148.17
I.ROOT-SERVERS.NET.      3600000      AAAA  2001:7FE::53
;
; OPERATED BY VERISIGN, INC.
;
.                        3600000      NS    J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET.      3600000      A     192.58.128.30
J.ROOT-SERVERS.NET.      3600000      AAAA  2001:503:C27::2:30
;
; OPERATED BY RIPE NCC
;
.                        3600000      NS    K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET.      3600000      A     193.0.14.129
K.ROOT-SERVERS.NET.      3600000      AAAA  2001:7FD::1
;
; OPERATED BY ICANN
;
.                        3600000      NS    L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET.      3600000      A     199.7.83.42
L.ROOT-SERVERS.NET.      3600000      AAAA  2001:500:3::42
;
; OPERATED BY WIDE
;
.                        3600000      NS    M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET.      3600000      A     202.12.27.33
M.ROOT-SERVERS.NET.      3600000      AAAA  2001:DC3::35
; End of File
to find out other domains DNS servers, for example "somedomain.com" goes through this TOP level domain servers, which then resolve to the "somedomain.com" DNS IP (some of my basic explanation).

etc...


If you think that you find this solution appropriate, please use the Thread Tools - Mark the thread as Solved to "close" this thread.
Thank you.

Last edited by lithos; 11-13-2011 at 08:45 AM.
 
Old 11-14-2011, 01:30 AM   #5
YaaY
LQ Newbie
 
Registered: Nov 2009
Posts: 15

Original Poster
Rep: Reputation: 1
Thanks a lot, that does make a lot of sense.

But, the question is, if I don't want to use the root DNS servers and I want to use Google's instead (8.8.8.8), where do I put it ?
 
Old 11-14-2011, 06:22 AM   #6
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Well, I don't think Google has 'open' DNS servers (for anyone anywhere - except I think Google APPS) which in this case isn't 8.8.8.8 IP but something else
The IP 8.8.8.8
I think is the 'root's servers IP.

So if you want your DNS nameserver working, just leave that IP out and it will do it's work for any address name you need, because it will go asking root nameservers.
 
Old 11-14-2011, 03:00 PM   #7
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Err, oh yes they do, and oh yes it is (well, along with 8.8.4.4). See here.

And, the root servers don't tend to have snappy IP addresses (if that has any meaning):

Code:
A.ROOT-SERVERS.NET.     3600000 IN      A       198.41.0.4
B.ROOT-SERVERS.NET.     3600000 IN      A       192.228.79.201
C.ROOT-SERVERS.NET.     3600000 IN      A       192.33.4.12
D.ROOT-SERVERS.NET.     3600000 IN      A       128.8.10.90
E.ROOT-SERVERS.NET.     3600000 IN      A       192.203.230.10
F.ROOT-SERVERS.NET.     3600000 IN      A       192.5.5.241
G.ROOT-SERVERS.NET.     3600000 IN      A       192.112.36.4
H.ROOT-SERVERS.NET.     3600000 IN      A       128.63.2.53
I.ROOT-SERVERS.NET.     3600000 IN      A       192.36.148.17
J.ROOT-SERVERS.NET.     3600000 IN      A       192.58.128.30
K.ROOT-SERVERS.NET.     3600000 IN      A       193.0.14.129
L.ROOT-SERVERS.NET.     3600000 IN      A       199.7.83.42
M.ROOT-SERVERS.NET.     3600000 IN      A       202.12.27.33
(Although, could easily be out of date by now - it is what my install says, and I haven't done anything to check, because that isn't where I get resolves from).

Last edited by salasi; 11-14-2011 at 03:02 PM. Reason: code tags added
 
  


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 Server - named.conf question Laserjock Linux - Newbie 2 05-29-2009 01:23 AM
RHEL5 named.caching-nameserver.conf does work! keysorsoze Red Hat 13 05-02-2008 02:03 AM
chown -R named:named /var/named crash the system? joangopan Fedora 2 09-09-2007 02:46 AM
named.conf and named.caching-server.conf ? Ronin_tekorei Linux - Server 4 05-03-2007 07:34 AM
caching only named is very chatty setiDude Linux - Networking 1 01-03-2005 04:44 PM

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

All times are GMT -5. The time now is 07:27 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