<div dir="ltr"><div>Hi,</div><div><br></div><div>I run DHCP/DNS using dnsmasq in three different sites. Each site has a domain a|b|<a href="http://c.int.personal.com">c.int.personal.com</a>. Each site has:</div><div><br></div><div>server=/<a href="http://other.int.personal.com/">other.int.personal.com/</a><ip of other.int.personal.com.dnsmasq><br>rev-server=<other.int.personal.com.dhcp.range>,<ip of other.int.personal.com.dnsmasq></div><div><br></div><div>for the other two sites. This works beautifully :)</div><div><br></div><div>However, when I jump on work's VPN on my a site, nmcli prints:</div><div><br></div><div>----------<br></div><div>DNS configuration:<br>        servers: work dns servers<br>        domains: <a href="http://work.com">work.com</a><br>        interface: tun0<br>        type: vpn<br><br>        servers: my dns server<br>        domains: <a href="http://a.int.personal.com">a.int.personal.com</a><br>        interface: wlp0s20f3</div><div>----------<br></div><div><br></div><div>Which works pretty well; I can resolve hosts on *.<a href="http://work.com">work.com</a> and *.<a href="http://a.int.personal.com">a.int.personal.com</a> perfectly. However, NetworkManager assigns the same priority to both connection's DNS servers for hostnames outside *.<a href="http://work.com">work.com</a> and *.<a href="http://a.int.personal.com">a.int.personal.com</a>, such as *.<a href="http://b.int.personal.com">b.int.personal.com</a>, which means I can sometimes resolve them, and sometimes not.</div><div><br></div><div>Is there any way to configure dnsmasq to "advertise" that the DNS server it provides via DHCP should also be used for *.b|<a href="http://c.internal.personal.com">c.internal.personal.com</a> hostnames? man dnsmasq says...</div><div><br></div><div>...</div><div>       -s, --domain=<domain>[,<address range>[,local]]<br>              Specifies DNS domains for the DHCP server....</div><div><br></div><div>but it is not clear to me how to specify multiple domains here or even if this is the option I want.</div><div><br></div><div>Cheers,</div><div><br></div><div>Álex<br></div></div>