[Dnsmasq-discuss] how to stop inappropriate appending of localnet?

Grant grant_nospam@dodo.com.au
Sat, 05 Feb 2005 12:30:11 +1100


Hi all,

System is dnsmasq 2.20 on slackware-current firewall box, serving 
a winxp sp2 client on 192.168.1.31 -- the winxp box also runs privoxy 
to filter out popups, javascript, adverts, etc.  


Here is an example from the dnsmasq log:

Feb  5 11:34:49 deltree dnsmasq[1432]: query www.itc-electronics.com[A] from 192.168.1.31
Feb  5 11:34:49 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.56.150
Feb  5 11:34:50 deltree dnsmasq[1432]: query www.itc-electronics.com[A] from 192.168.1.31
Feb  5 11:34:50 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.27.58
Feb  5 11:34:50 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.56.150
Feb  5 11:34:51 deltree dnsmasq[1432]: query www.itc-electronics.com[A] from 192.168.1.31
Feb  5 11:34:51 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.27.58
Feb  5 11:34:51 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.56.150
Feb  5 11:34:51 deltree dnsmasq[1432]: query www.itc-electronics.com.localnet[A] from 192.168.1.31
Feb  5 11:34:51 deltree dnsmasq[1432]: config www.itc-electronics.com.localnet is <NXDOMAIN>-IPv4
Feb  5 11:34:51 deltree dnsmasq[1432]: query www.itc-electronics.com[A] from 192.168.1.31
Feb  5 11:34:51 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.27.58
Feb  5 11:34:52 deltree dnsmasq[1432]: query www.itc-electronics.com[A] from 192.168.1.31
Feb  5 11:34:52 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.56.150
Feb  5 11:34:52 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.27.58
Feb  5 11:34:53 deltree dnsmasq[1432]: query www.itc-electronics.com[A] from 192.168.1.31
Feb  5 11:34:53 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.56.150
Feb  5 11:34:53 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.27.58
Feb  5 11:34:53 deltree dnsmasq[1432]: query www.itc-electronics.com.localnet[A] from 192.168.1.31
Feb  5 11:34:53 deltree dnsmasq[1432]: config www.itc-electronics.com.localnet is <NXDOMAIN>-IPv4
Feb  5 11:35:09 deltree dnsmasq[1432]: query www.itc-electronics.com[A] from 192.168.1.31
Feb  5 11:35:09 deltree dnsmasq[1432]: forwarded www.itc-electronics.com to 203.194.27.58
Feb  5 11:35:09 deltree dnsmasq[1432]: reply www.itc-electronics.com is 195.46.33.207
Feb  5 11:35:09 deltree dnsmasq[1432]: reply www.itc-electronics.com is 217.117.81.82

The problem is the windows box tacking on 'localnet' to what is an 
external name, while the original query is still 'in flight'.

While dnsmasq is doing the right thing, it certainly is not what is 
intended!  And, you can see the manual retry at 11:35:09 succeeded.  

Appended is current setup, I'm seeking suggestions on what to try next.

Cheers,
Grant.


current /etc/dnsmasq is:
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Section 1. Nameserver
# ``````````````````````

addn-hosts=/usr/local/etc/hosts
log-queries
query-port=1234
interface=eth0
interface=eth1
bind-interfaces
localise-queries
bogus-priv
#bogus-nxdomain=<ipaddr>
filterwin2k
resolv-file=/etc/ppp/resolv.conf
domain-needed
local=/localnet/
local=/test-net/
mx-host=mail
mx-target=mail
localmx
cache-size=99
#no-negcache

#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Section 2. DHCP Server
# ```````````````````````

dhcp-range=192.168.1.101,192.168.1.109,2h
dhcp-range=192.168.2.201,192.168.2.209,2h
dhcp-host=00:80:C7:4D:80:B7,192.168.2.49,stinkpad
dhcp-host=magpie,192.168.1.31
dhcp-host=poohnt,192.168.1.32
dhcp-host=pooh98,192.168.1.42
dhcp-option=42,0.0.0.0
dhcp-lease-max=32
dhcp-authoritative
domain=localnet
expand-hosts

# end