[Dnsmasq-discuss] query for a.com tries a.com.localhost.localdomain

Simon Kelley simon at thekelleys.org.uk
Thu May 4 17:03:21 BST 2006


Sebastian Muñiz wrote:
> Hi List.
> I am setting up a machine to act as a gateway.
> When a nated host that took it´s ip from the dnsmas dhcp
>  asks for a.com dnsmasq tries first to resolve an [AAAA] a.com
> After receiving the <NODATA>-IPv6 dnsmas tries a.com.mylocaldomain.
> Needless to say it takes 20 seconds to resolve something.
> In the end it tries [A] a.com and success...
> 
> Here is an extract from the syslog.
> May  3 21:02:35 localhost dnsmasq[3888]: query[AAAA] www.uba.ar from
> 172.16.0.253
> May  3 21:02:35 localhost dnsmasq[3888]: forwarded www.uba.ar to
> 200.68.216.15
> May  3 21:02:35 localhost dnsmasq[3888]: forwarded www.uba.ar to
> 208.51.140.15
> May  3 21:02:35 localhost dnsmasq[3888]: reply www.uba.ar is <NODATA>-IPv6
> May  3 21:02:35 localhost dnsmasq[3888]: query[AAAA]
> www.uba.ar.wirshaper.wirserver.com.ar from 172.16.0.253
> May  3 21:02:35 localhost dnsmasq[3888]: forwarded
> www.uba.ar.wirshaper.wirserver.com.ar to 200.68.216.15
> May  3 21:02:40 localhost dnsmasq[3888]: query[AAAA]
> www.uba.ar.wirshaper.wirserver.com.ar from 172.16.0.253
> May  3 21:02:40 localhost dnsmasq[3888]: forwarded
> www.uba.ar.wirshaper.wirserver.com.ar to 200.68.216.15
> May  3 21:02:45 localhost dnsmasq[3888]: query[AAAA]
> www.uba.ar.wirshaper.wirserver.com.ar from 172.16.0.253
> May  3 21:02:45 localhost dnsmasq[3888]: forwarded
> www.uba.ar.wirshaper.wirserver.com.ar to 208.51.140.15
> May  3 21:02:45 localhost dnsmasq[3888]: forwarded
> www.uba.ar.wirshaper.wirserver.com.ar to 200.68.216.15
> May  3 21:02:50 localhost dnsmasq[3888]: query[AAAA]
> www.uba.ar.wirshaper.wirserver.com.ar from 172.16.0.253
> May  3 21:02:50 localhost dnsmasq[3888]: forwarded
> www.uba.ar.wirshaper.wirserver.com.ar to 208.51.140.15
> May  3 21:02:50 localhost dnsmasq[3888]: forwarded
> www.uba.ar.wirshaper.wirserver.com.ar to 200.68.216.15
> May  3 21:02:55 localhost dnsmasq[3888]: query[A] www.uba.ar from
> 172.16.0.253
> May  3 21:02:55 localhost dnsmasq[3888]: forwarded www.uba.ar to
> 200.68.216.15
> May  3 21:02:55 localhost dnsmasq[3888]: forwarded www.uba.ar to
> 208.51.140.15
> May  3 21:02:55 localhost dnsmasq[3888]: reply www.uba.ar is 157.92.44.2
> May  3 21:02:55 localhost dnsmasq[3888]: query[A] www.uba.ar from 127.0.0.1
> May  3 21:02:55 localhost dnsmasq[3888]: cached www.uba.ar is 157.92.44.2
> 
> See that it took 20 seconds in the whole process...
> Timeout the [AAAA] and the querying again for the real query concatenated
> with my lan domain.
> In any case I have not an IPV6 enabled host and I was trying to go
> www.uba.ar with Firefox. I have just noticed that if I use
> dig www.uba.com.ar it receives a standard [A] query and works ok
> 
> Where could be the problem? How can I fix this?

add

local=/wirshaper.wirserver.com.ar/

to /etc/dnsmasq.conf. That will stop dnsmasq forwarding any queries for 
that domain to upstream servers.


Cheers,

Simon.




More information about the Dnsmasq-discuss mailing list