[Dnsmasq-discuss] local domain added when forwarding to upstream DNS servers
Lixus Zoran
gps at muellers.ms
Wed Apr 29 20:05:06 BST 2009
Hello,
I would like to use dnsmasq as switch for different
DNS servers based on the domain in the querie.
Queries about servers in my domain mycompany.tld should go to 10.0.0.1
and all other queries should go to an upstream server 85.214.73.63
This is my /etc/dnsmasq.conf
resolv-file=/etc/resolvconf/resolv.conf.d/upstream
strict-order
server=/mycompany.tld/10.0.0.1
This is my /etc/resolvconf/resolv.conf.d/upstream
nameserver 85.214.73.63
This is my /etc/resolv.conf
nameserver 127.0.0.1
search mycompany.tld
A lookup in mycompany.tld works fine "nslookup myhost.mycompany.tld":
9505.864185 10.0.0.43 -> 10.0.0.1 DNS Standard query A myhost.mycompany.tld
9505.864371 10.0.0.1 -> 10.0.0.43 DNS Standard query response A 10.0.0.86
But if I lookup external servers my domain gets appended "nslookup www.cnn.com":
9515.833311 10.0.0.43 -> 10.0.0.1 DNS Standard query A www.cnn.com.mycompany.tld
9515.833555 10.0.0.1 -> 10.0.0.43 DNS Standard query response, No such name
It queries for www.cnn.com.mycompany.tld instead of just www.cnn.com
How can I fix this ?
More information about the Dnsmasq-discuss
mailing list