[Dnsmasq-discuss] split DNS, multiple --local entries and secondary DNS

Martijn Brinkers (List) martijn.list at gmail.com
Thu May 24 19:55:14 BST 2007


> I just tested this, and it seems to be working as intended, the query
> gets sent to the first server, and if it times out and is retried, it
> gets sent to both.
> 
>   src/dnsmasq -p 10000 -q --server=/wibble/1.1.1.1
> --server=/wibble/2.2.2.2 -d
> dnsmasq: started, version 2.40test7 cachesize 150
> dnsmasq: compile time options: IPv6 GNU-getopt no-ISC-leasefile no-DBus
> no-I18N TFTP
> dnsmasq: using nameserver 2.2.2.2#53 for domain wibble
> dnsmasq: using nameserver 1.1.1.1#53 for domain wibble
> dnsmasq: reading /etc/resolv.conf
> dnsmasq: using nameserver 192.168.0.4#53
> dnsmasq: using nameserver 2.2.2.2#53 for domain wibble
> dnsmasq: using nameserver 1.1.1.1#53 for domain wibble
> dnsmasq: read /etc/hosts - 8 addresses
> dnsmasq: query[A] w.wibble from 127.0.0.1
> dnsmasq: forwarded w.wibble to 1.1.1.1
> dnsmasq: query[A] w.wibble from 127.0.0.1
> dnsmasq: forwarded w.wibble to 2.2.2.2
> dnsmasq: forwarded w.wibble to 1.1.1.1


This seems not work for me. I use DNSMasq from Debian Sarge which is version
2.22. Could it be that that version does not support this?

My resolv.conf

search intra.izecom.com
nameserver 127.0.0.1
nameserver 194.109.6.67

(194.109.6.67 is the name server from XS4ALL)

The output I have with dig:

dig zloty.izecom.com

Output from dig:

; <<>> DiG 9.2.4 <<>> zloty.izecom.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25406
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;zloty.izecom.com.              IN      A

;; ANSWER SECTION:
zloty.izecom.com.       86400   IN      A       195.64.86.233

;; AUTHORITY SECTION:
izecom.com.             86400   IN      NS      ns.xs4all.nl.
izecom.com.             86400   IN      NS      ns2.xs4all.nl.

;; ADDITIONAL SECTION:
ns.xs4all.nl.           172800  IN      A       194.109.6.67
ns2.xs4all.nl.          172800  IN      A       194.109.9.100

;; Query time: 13 msec
;; SERVER: 194.109.6.67#53(194.109.6.67)
;; WHEN: Thu May 24 20:47:24 2007
;; MSG SIZE  rcvd: 126

The output from dnsmasq:

webtest:/etc# dnsmasq -q --server=/izecom.com/1.1.1.1
--server=/izecom.com/192.168.0.198 -z -d
dnsmasq: started, version 2.22 cachesize 150
dnsmasq: using nameserver 192.168.0.198#53 for domain izecom.com
dnsmasq: using nameserver 1.1.1.1#53 for domain izecom.com
dnsmasq: cleared cache
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 194.109.6.67#53
dnsmasq: ignoring nameserver 127.0.0.1 - local interface
dnsmasq: using nameserver 192.168.0.198#53 for domain izecom.com
dnsmasq: using nameserver 1.1.1.1#53 for domain izecom.com
dnsmasq: query[A] zloty.izecom.com from 127.0.0.1
dnsmasq: forwarded zloty.izecom.com to 1.1.1.1


dnsmasq does not forward the request to the internal (192.168.0.198) DNS
server. Somehow the external DNS (from resolv.conf) is used instead.


Martijn






More information about the Dnsmasq-discuss mailing list