[Dnsmasq-discuss] dnsmasq not querying all servers, although all-servers uncommented, try 2
Ilya Basin
basinilya at gmail.com
Thu Jan 17 08:50:06 GMT 2013
SK> On 15/01/13 08:26, Ilya Basin wrote:
>> terminal 1:
>> [il at il ~]$ cat /etc/dnsmasq.conf | grep -v "^\(#\|$\)"
>> all-servers
>> resolv-file=/etc/dnsmasq-resolv.conf
>> listen-address=127.0.0.1
>> no-negcache
>> conf-file=/etc/dnsmasq-conf.conf
>>
>> [il at il ~]$ sudo dnsmasq -d
>> dnsmasq: started, version 2.65 cachesize 150
>> dnsmasq: compile time options: IPv6 GNU-getopt DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack
>> dnsmasq: using nameserver 192.168.0.1#53 for domain Dlink
>> dnsmasq: reading /etc/dnsmasq-resolv.conf
>> dnsmasq: using nameserver 192.168.0.1#53
>> dnsmasq: using nameserver 192.168.0.1#53 for domain Dlink
>> dnsmasq: read /etc/hosts - 2 addresses
>>
>>
>> terminal 2:
>> [il at il ~]$ sudo vpnc
>> VPNC started in background (pid: 23320)...
>>
>> $ cat /etc/resolv.conf
>> # Generated by resolvconf
>> domain foo.org
>> search foo.org Dlink
>> nameserver 127.0.0.1
>>
>> [il at il ~]$ cat /etc/dnsmasq-resolv.conf
>> # Generated by resolvconf
>> nameserver 192.168.149.10
>> nameserver 192.168.110.11
>> nameserver 192.168.0.1
>>
>> [il at il ~]$ cat /etc/dnsmasq-conf.conf
>> # Generated by resolvconf
>> server=/foo.org/192.168.149.10
>> server=/foo.org/192.168.110.11
>> server=/Dlink/192.168.0.1
>>
>> [il at il ~]$ nslookup intra.foo.org
>> Server: 127.0.0.1
>> Address: 127.0.0.1#53
>>
>> ** server can't find intra.foo.org: NXDOMAIN
>>
>> terminal 1:
>> dnsmasq: reading /etc/dnsmasq-resolv.conf
>> dnsmasq: using nameserver 192.168.0.1#53
>> dnsmasq: using nameserver 192.168.110.11#53
>> dnsmasq: using nameserver 192.168.149.10#53
>> dnsmasq: using nameserver 192.168.0.1#53 for domain Dlink
>>
>> Dnsmasq! Why you no reread /etc/dnsmasq-conf.conf?
SK> Because dnsmasq doesn't re-read general configuration files, you have to
SK> restart it.
>>
>> terminal 2:
>> [il at il ~]$ nslookup intra.foo.org 192.168.149.10
>> Server: 192.168.149.10
>> Address: 192.168.149.10#53
>>
>> intra.foo.org canonical name = ent.foo.org.
>> Name: ent.foo.org
>> Address: 192.168.148.28
>>
>> [il at il ~]$ nslookup intra.foo.org
>> Server: 127.0.0.1
>> Address: 127.0.0.1#53
>>
>> ** server can't find intra.foo.org: NXDOMAIN
>>
>> Dnsmasq! Why you no query 192.168.110.11 and 192.168.149.10 ?
SK> Because dnsmasq got an answer (NXDOMAIN) from the first server it queried.
SK> Cheers,
SK> Simon.
>>
>>
>>
>> _______________________________________________
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss at lists.thekelleys.org.uk
>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>>
SK> _______________________________________________
SK> Dnsmasq-discuss mailing list
SK> Dnsmasq-discuss at lists.thekelleys.org.uk
SK> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Simon, is there an option to ignore the first negative answer?
Of course, my router doesn't know my company's names.
--
More information about the Dnsmasq-discuss
mailing list