Am 13.08.19 um 16:36 schrieb hanscees:
> Package: network-manager
> Version: 1.6.2-3+deb9u2
> Severity: normal
> 
> Dear Maintainer,
> 
> 
> Bug description:
>   Hello,
>   I am using raspbian (debian based)
>   PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
> 
>   trying to switch from dhcp to a static IP. But dns config changes keep
>   on failing
> 
>   The config files I am using that configure static ip and an dns-server are 
> below
> 
>   I would suspect networkmanager would thus:
>   * manage the file /etc/resolvconf/run/resolv.conf
>   * to read *ONLY* the dns-server 192.168.0.112
> 
>   However, some (probably systemd?) proces also adds 8.8.8.8
>   I suspect because on debian this file (which I did not alter) contains the 
> 8.8.8.8 dns server:
> 
>   root@bananas:~# cat /etc/resolvconf/resolv.conf.d/head 
>   nameserver 8.8.8.8
> 
>   Anyway, after I configured only 1 dns-server and a reboot the resolv.conf 
> file falsely now holds *TWO* dns-severs, and I did not
>   configure 8.8.8.8:
> 
> Here is that file
>   root@bananas:~# cat /etc/resolvconf/run/resolv.conf
>   nameserver 8.8.8.8
>   nameserver 192.168.0.112
> 
> 
>   I was wondering if this is a bug in networkmanager? Should it not make
>   sure resolv.conf reflects its configfiles?
> 
>   Thanks.
> 
>   
>   root@bananas:~# nmcli d
>   DEVICE  TYPE      STATE      CONNECTION 
>   eth0    ethernet  connected  eth0       
>   bond0   bond      unmanaged  --         
>   dummy0  dummy     unmanaged  --         
>   lo      loopback  unmanaged  --         
>   root@bananas:~# nmcli c
>   NAME             UUID                                  TYPE            
> DEVICE 
>   eth0             89f35383-2b42-4bec-8220-e4db54512147  802-3-ethernet  eth0 
>   
>   Ifupdown (eth0)  681b428f-beaf-8932-dce4-687ed5bae28e  802-3-ethernet  --   
> 
> 
>   
>   root@bananas:~# cat /etc/NetworkManager/NetworkManager.conf
>   [main]
>   plugins=ifupdown,keyfile
> 
>   [ifupdown]
>   managed=true
> 
>   
>   root@bananas:~# cat /etc/network/interfaces
>   # Include additional interface stanzas.
>   source-directory interfaces.d
> 
>   # The loopback network interface
>   auto lo
>   iface lo inet loopback
> 
>   # eth0 network interface
>   auto eth0
>   allow-hotplug eth0
>   iface eth0 inet static
>       address 192.168.0.83
>       gateway 192.168.0.111
>       netmask 255.255.255.0
>       dns-nameservers 192.168.0.112
>   iface eth0 inet6 manual
>       pre-down ip -6 addr flush dev $IFACE


Please use the native keyfile format to configure network-manager.
managed=true mode is not really supported well and I'm not going to
spend time on this mode (I'll more likely remove ifupdown/managed=true
mode altogether), since it was never working properly.


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to