[Dnsmasq-discuss] DNS forwarding + search domain/suffix

Carlos Carvalho carlos at fisica.ufpr.br
Thu Mar 3 13:08:58 GMT 2011


Richard Fogle (rich at neosaint.org) wrote on 1 March 2011 16:10:
 >I'm using dnsmasq as a DNS forwarder and I'm having a tough time finding a piece of functionality, I'm almost convinced I'm missing something.  Instead of posting one of my many test configurations this is what I'm trying to do:
 >
 >1.  Forward DNS requests to DNS server DNS1.
 >2.  Have dnsmasq listen on loopback.
 >3.  Set the /etc/resolv.conf to resolve to loopback; disable resolv.conf lookup in the conf file
 >
 >This works great except for one thing - resolving local hostnames
 >that only DNS1 would know.  For example, if I lookup
 >"www.domain.com" the masq works perfectly.  If I use just a single
 >hostname that should have a search domain appended to it (I tried
 >expand-domains, domain, domain-suffix, etc, but they seem to be more
 >tied to DHCP) it won't resolve or append the search domain.  I'm not
 >seeing anything specific to 'search domain' in the man page.  DNS1
 >is authoritative to what would be the search domain.  What am I
 >missing?

domain-needed?



More information about the Dnsmasq-discuss mailing list