[Dnsmasq-discuss] opcode: QUERY, status: REFUSED

Mike Wright mike.wright at mailinator.com
Tue Jan 22 20:24:51 GMT 2008

Hi all,

New dnsmasq user here and having a bit of trouble.  Googled and searched 
the archives and haven't had any luck.

Running dnsmasq-2.38-1.fc6.i386.rpm on fedora core 6.

I'm trying to block adservers.  I think I have the config file setup 
correctly but dnsmasq is not acting as I expect.

I've made these changes to dnsmasq.conf:


iptables is not running on the local machine

Examples (for brevity only status shown):

1)  dig @lo www.yahoo.com. any

       opcode: QUERY, status: NOERROR

2)  dig @lo mediaplex.com. any

       opcode: QUERY, status: REFUSED

3)  dig @dns mediaplex.com. any

       opcode: QUERY, status: NOERROR

example 1 acts as expected, passing the query through to the recursive 
name server.

example 2 should be answered with NOERROR and address but 
instead is refused.

example 3 queries the recursive nameserver directly and succeeds.

I have logging enabled (I think) but nothing shows up in 
/var/log/messages or anywhere else in /var/log.

Anybody have any pointers or ideas for me?

Any and all help greatly appreciated,
Mike Wright :m)

More information about the Dnsmasq-discuss mailing list