On 10/21/23 13:58, Felix Miata wrote:
Pocket composed on 2023-10-21 12:23 (UTC-0400):
I want NetworkManager to not over write /etc/resolv.conf
...
Is there something I am over looking?
If you're not personally committed to NetworkMangler and only need static
networking, then remove it and ifupdown. Systemd provides simple static IP
network setup:
I may well be at that point to use systemd networking.
That would require me to rip out all the no defunct packages which I
could do, but I would rather just get nm working correctly if I can.
ifupdown and dhcpcd has worked for me in bullseye and that may indeed be
where this resolved to.
My setup is that I was a dhcp server to give out IPs and DNS info.
That way I can control those things without having to do so on ever system.
I just make the change on the router and I am done.
# inxi -S
System:
Host: gx780 Kernel: 6.1.0-11-amd64 arch: x86_64 bits: 64 Console: pty pts/0
Distro: Debian GNU/Linux 12 (bookworm)
# dpkg-query --showformat='${Package}\t${Version}\n' --show | egrep
'netw|solv|temd|ifupdown'
libpam-systemd 252.12-1~deb12u1
libqt5network5 5.15.8+dfsg-11
libsystemd-shared 252.12-1~deb12u1
libsystemd0 252.12-1~deb12u1
systemd 252.12-1~deb12u1
systemd-sysv 252.12-1~deb12u1
# ls -gG /etc/systemd/network
total 1
-rw-r--r-- 1 175 Apr 3 2023 eth0.network
# systemctl list-unit-files | egrep -i 'net|solv|anager'
ntpsec-systemd-netif.path enabled enabled
display-manager.service alias -
ntpsec-systemd-netif.service static -
systemd-network-generator.service disabled enabled
systemd-networkd-wait-online.service disabled disabled
systemd-networkd-wait-online@.service disabled enabled
systemd-networkd.service disabled enabled
systemd-networkd.socket enabled enabled
network-online.target static -
network-pre.target static -
network.target static -
# ping -c1 www.google.com
PING www.google.com (64.233.177.99) 56(84) bytes of data.
64 bytes from yx-in-f99.1e100.net (64.233.177.99): icmp_seq=1 ttl=58 time=155 ms
--- www.google.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 154.625/154.625/154.625/0.000 ms
#
Nothing writes to my /etc/resolv.conf except me. :)
--
It's not easy to be me