[Dnsmasq-discuss] dnsmasq not querying all servers, although all-servers uncommented, try 2

Ilya Basin basinilya at gmail.com
Tue Jan 15 08:26:43 GMT 2013


  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?

  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 ?





More information about the Dnsmasq-discuss mailing list