Network manager and split DNS for a VPN?
Chris Green
cl at isbd.net
Thu Apr 13 08:19:41 UTC 2017
On Thu, Apr 13, 2017 at 09:32:30AM +0200, Xen wrote:
> aye but your nmcli command probably also works with less parameters.
>
> I just can't test because I don't have any NetworkManager system I think :p.
>
> > The reason that dnsmasq lacks a frontend is that it's not the "full"
> > package, dnsmasq, that's used by NM; it's dnsmasq-base.
> >
> > dnsmasq-base installs "/usr/sbin/dnsmasq" and
> > "/etc/dbus-1/system.d/dnsmasq.conf".
> >
> > dnsmasq installs "/etc/dnsmasq.conf", "/etc/init.d/dnsmasq", and
> > "/lib/systemd/system/dnsmasq.service".
> >
> > If you use dnsmasq and resolvconf, IIRC, you can run "cat
> > /run/resolvconf/resolv.conf" (or possibly "cat
> > /run/dnsmasq/resolv.conf"; I don't have them installed to check,
> > sorry).
>
> Oh. Well that would be nice. So they're basically using dnsmasq as a plugin
> almost.
>
It *would* be nice, however....
On my systems running the 'dnsmasq plugin' from NM I see:-
chris$ cat /run/resolvconf/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by
resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search zbmc.eu
... and on the system where I'm running a 'real' dnsmasq I see:-
chris at raspberrypi:~$ cat /run/resolvconf/resolv.conf
cat: /run/resolvconf/resolv.conf: No such file or directory
chris at raspberrypi:~$
--
Chris Green
More information about the ubuntu-users
mailing list