For my own reference, mostly, and people somehow arriving here by Google...

According to NetworkManager's documentation:

https://developer.gnome.org/NetworkManager/stable/settings-ipv4.html

about the dns-priority setting, given that:

* I'm using dnsmasq as NetworkManager's resolver
* My default route is in my wifi connection
* Work's VPN specifies a search domain

I should get the behavior I want reliably without further work.

Thanks,

Álex

On Sat, Jun 6, 2020 at 1:33 PM Alex Corcoles <a...@corcoles.net> wrote:

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

Reply via email to