<div dir="ltr"><div class="gmail_quote"><div dir="ltr">I have a simple configuration.<div><br></div><div>Server</div><div>- NIC 1: external; gets connection to the outside world via DHCP</div><div>- NIC 2: internal; serves a connection to the local network via dnsmasq/DHCP</div><div><br></div><div>The local network has its own domain, "home.lan".  I have no issue setting up dnsmasq to use an appropriate resolv.conf generated by the dhcp-client that establishes the connection to the outside world on NIC1 (using the resolv-file setting).  This properly forwards request to upstream dns servers.  I can also specify the internal domain name with "domain=home.lan".</div><div><br></div><div>The problem I'm trying to solve, however, is that the external network provides search-domains via dhcp; those domain search lines _ARE_ in the resolv.conf I'm referencing with resolv-file, too.  However, I cannot figure out a way to have the internal network's clients append those to its search domains automatically.  Dnsmasq intentionally ignores all entries other than nameservers when reading resolv.conf.</div><div><br></div><div>Ideally, I'd like my dhcp clients to search home.lan first, then whatever the upstream server specified, that way this middle-man NAT I've created works more seamlessly regardless of which network I connect it to.</div><div><br></div><div>How could I accomplish this?  I have everything working with my setup except this...</div><div><br></div><div>Thanks!</div></div>
</div><br></div>