Skip to content

DNS Server Problem – nslookup Query refused

July 23, 2012
[root@xxxx rc.d]# nslookup
*** Can’t find server name for address 10.100.11.14: Query refused
Query refused

On your master, add allow-query { 10.100.11.0/24; }; within options {}

 
 

[root@bigboy log]# ls -l /etc/named.caching-nameserver.conf
lrwxrwxrwx 1 root named 52 Jul 16 13:27 /etc/named.caching-nameserver.conf -> /var/named/chroot//etc/named.caching-nameserver.conf
[root@bigboy log]#

acl my-net { 10.100.11.0/24 ; } ;
acl my-host {10.100.11.14;};
//
// named.caching-nameserver.conf
//
// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching only nameserver
// (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE – use system-config-bind or an editor
// to create named.conf – edits to this file will be lost on
// caching-nameserver package upgrade.
//
options {
listen-on port 53 { 127.0.0.1;my-host;};
// 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;my-net; };
};
logging {
channel default_debug {
file “data/named.run”;
severity dynamic;
};
};
view localhost_resolver {
match-clients { localhost;my-net; };
match-destinations { localhost;my-net; };
recursion yes;
include “/etc/named.rfc1912.zones”;
};
~
~
~

 


About these ads

From → Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: