Monday, January 28, 2013
7:13 PM

DNS query Says Refused

First Check is there any Firewall enable.

#iptables -L

In that DNS 53 is allowing or not.

If it is not allowing add following rule in /etc/sysconfig/iptables (IN FORWARD )



-A INPUT -m state --state NEW -m tcp -p tcp --dport 53 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT


And then restart iptables

# service iptables restart

now check 

# nslookup sample

------ IF still giving the Refused.


Now check on the /etc/named.conf

allow-query { localhost; }


change this to

allow-query { <your-network> ; }  ex:192.0.0.1/24

0 comments:

Post a Comment