[Dnsmasq-discuss] local domain added when forwarding to upstream DNS servers
Lixus Zoran
gps at muellers.ms
Thu Apr 30 10:47:10 BST 2009
Hi Tom,
> And that isn't followed by a query for www.cnn.com?
Sorry, I do not understand this question. I did a "nslookup www.cnn.com"
and I saw in the tcp capture that this got translated to www.cnn.com.mydomain.tld
> What if you 1. query www.cnn.com. (note the trailing period) or 2.
> eliminate the "search mycompany.tld" line from /etc/resolv.conf?
Does not help, see 5) for details. This reflects the current situation:
mydesktop:~/# dnsmasq --version
Dnsmasq version 2.45 Copyright (C) 2000-2008 Simon Kelley
mydesktop:~# /etc/init.d/nscd stop
mydesktop:~# /etc/init.d/dnsmasq restart
Restarting DNS forwarder and DHCP server: dnsmasq.
mydesktop:~# cat /etc/dnsmasq.conf | grep -v ^# | grep -v "^ *$"
resolv-file=/etc/resolvconf/resolv.conf.d/upstream
server=/mycompany.tld/10.0.0.1
mydesktop:~# cat /etc/resolv.conf
nameserver 127.0.0.1
( i removed the "search mydomain.tld" line )
mydesktop:~# cat /etc/resolvconf/resolv.conf.d/upstream
nameserver 85.214.73.63
1) checking for a hostname in my domain without domainname
===========================================================
mydesktop:~# nslookup myfileserver
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find myfileserver: REFUSED
mydesktop:~# tshark -i br0 port 53
Capturing on br0
-> no dns querie is send out
Of course this did not work since i removed the "search mydomain.tld"
from /etc/resolve.conf and the host is not listed in /etc/hosts
2) checking for a hostname in my domain with domainname
=========================================================
mydesktop:~# nslookup myfileserver.mycompany.tld
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: myfileserver.mycompany.tld
Address: 10.0.0.86
mydesktop:~# tshark -i br0 port 53
Capturing on br0
0.000000 10.0.0.43 -> 10.0.0.1 DNS Standard query A myfileserver.mycompany.tld
0.000283 10.0.0.1 -> 10.0.0.43 DNS Standard query response A 10.0.0.86
Works as expected.
3) checking for lists.thekelleys.org.uk
=======================================
mydesktop:~# nslookup lists.thekelleys.org.uk
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find lists.thekelleys.org.uk: REFUSED
mydesktop:~# tshark -i br0 port 53
Capturing on br0
-> no outgoing DNS querie captured
That is surprising me, this querie not even gets forwarded to the upsteam server.
4) checking for lists.thekelleys.org.uk. with a dot at the end
==============================================================
mydesktop:~# nslookup lists.thekelleys.org.uk.
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find lists.thekelleys.org.uk: REFUSED
mydesktop:~# tshark -i br0 port 53
Capturing on br0
-> no outgoing DNS querie captured
Same here, dnsmasq is not even forwarding to the upsteam server
5) checking the responsiness of the upsteam server
==================================================
mydesktop:~# nslookup
> server 85.214.73.63
Default server: 85.214.73.63
Address: 85.214.73.63#53
> lists.thekelleys.org.uk
Server: 85.214.73.63
Address: 85.214.73.63#53
Non-authoritative answer:
lists.thekelleys.org.uk canonical name = thekelleys.org.uk.
Name: thekelleys.org.uk
Address: 86.9.119.69
More information about the Dnsmasq-discuss
mailing list