Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-09-2008, 03:55 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Problems w/ caching-only nameserver (BIND9.3.3-10)

Hey guys,

I pushed down bind, bind-chroot, bind-utils, and caching-nameserver all via up2date.

Having trouble when I startup BIND, DNS is not working properly, whenever bind starts, I loose my own forwarders im assuming? from /etc/resolv.conf

I am very new to BIND, and reading as much info as I can grasp on the subject.

forgot to mention - OS is RHEL5 , named.conf is located in /var/named/chroot/etc


options {
	listen-on port 53 {; };
	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";
	query-source    port 53;	
	query-source-v6 port 53;
	allow-query     { localhost; };
logging {
        channel default_debug {
                file "data/";
                severity dynamic;
view localhost_resolver {
	match-clients 	   { localhost; };
	match-destinations { localhost; };
	recursion yes;
	include "/etc/named.rfc1912.zones";
named.rfc.1912.zones :

zone "." IN {
	type hint;
	file "";

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

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

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

zone "" IN {
        type master;
	file "named.ip6.local";
	allow-update { none; };

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

zone "" IN {
	type master;
	file "";
	allow-update { none; };
I have not generated an rdnc.key yet. At this point my objective is to make this caching-only nameserver work so I can ultimately ping other hosts over the LAN, and have each person that is obtaining an IP via dhcpd to also be able to get out to the internet.

Any help on this subject is greatly appreciated.

Last edited by KaniGT5; 03-09-2008 at 03:56 PM.
Old 03-10-2008, 02:07 PM   #2
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
What you have is a (new to BIND 9) configuration for a cacheing-only local nameserver. This configuration will only respond to queries from "localhost" and for "localhost", because you have nearly all your config info specified within a view. This may in fact be what you want, but unless the hostname of your RHEL 5 box is "localhost", maybe not. The most troublesome of the substatements in your view specification seems to be
match-destinations {localhost;};
This substatement says that the view only applies to queries for the address of "localhost". This is almost certainly not what you want. I would recommend removing (or commenting out) this line and seeing how things stand once you restart named.

Perhaps you can tell us a little more about what does and does not work when named is running; at the same time, if there are any complaints in the logfile from named, please post them as well. I think the default for error messages (since you have nothing for them in your logging section) is syslog, which will put them into /var/log/messages.

The things to check are:

1. Using dig or nslookup, can your box resolve "localhost" to ?
2. Can it do the reverse (given, does the name come back "localhost") ?
3. Can it reach a root server (the names and addresses are listed in /var/named/chroot/var/named/ ?
4. Can it reach a well-known Internet site (eg ?

After that, let us know what else does not work. As things are configured now, no other machine on your local net will be able to use the cacheing nameserver. You can change that by creating an access control list (acl, specifying addresses or address ranges, and then substituting that acl name for "localhost" in two places: in allow-query, and in match-clients.


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
LXer: Resolving Domains Internally And Externally With Bind9 And Caching Nameserver LXer Syndicated Linux News 0 02-11-2007 08:33 AM
a problem with a caching-nameserver -9.3.2 in my ppc faytoday Linux - Networking 1 12-18-2006 03:40 AM
need help on caching nameserver yawe_frek Linux - Networking 1 12-08-2006 09:35 AM
checklist for caching nameserver masand Linux - Software 1 07-30-2005 07:14 AM
Problems with caching nameserver on slackware 9.1 dave_blob Linux - Networking 11 04-20-2004 02:46 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:49 AM.

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