On Sun, Feb 16, 2020 at 8:37 PM Tom Horsley <horsley1953(a)gmail.com> wrote:
I keep seeing signs that "network" will someday disappear
entirely and I'll be forced to use NetworkManager, so the
first question I haven't been able to find an answer
for:
What is the "proper" way to setup a network connection
using nmcli which will get an IP via DHCP, but will ignore
the DHCP provided DNS and use a different DNS server specified
manually? (I can do it using techniques like chattr +i on
/etc/resolv.conf, but that isn't exactly "proper" :-).
I have no idea how to use nmcli, but I connect my laptop to my phone
hotspot with dhcp and unbound.
I have
[main]
dns=default
rc-manager=symlink
...
in "/etc/NetworkManager/NetworkManager.conf"
and
[ipv4]
dns=127.0.0.1
...
in "/etc/NetworkManager/system-connections/android.nmconnection"