Monday, 28 January 2013

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:

Share This!

No comments:

Post a Comment

Here We Write The Problems we face at different situations and Solutions to those problems.