Univention Bugzilla – Bug 51998
Changing the nameserver breaks DNS in running apps (appbox)
Last modified: 2020-09-11 15:20:24 CEST
Normally just restarting the container is enough so that /etc/resolv.conf in the container is updated according to the hosts resolv.conf. But appbox always commits (ucr) the /etc/resolv.conf upon startup File: /etc/resolv.conf interfaces/eth0/address: 172.17.0.2 interfaces/eth0/broadcast: 172.17.255.255 interfaces/eth0/netmask: 255.255.0.0 interfaces/eth0/network: 172.17.0.0 ifdown: interface eth0 not configured File: /etc/dhcp/dhclient.conf RTNETLINK answers: Operation not permitted ifup: failed to bring up eth0 Setting system/setup/boot/force/fqdn Setting interfaces/eth0/address Setting interfaces/eth0/broadcast Setting interfaces/eth0/netmask Setting interfaces/eth0/network Setting interfaces/eth0/type Setting docker/container/uuid Multifile: /etc/network/interfaces Multifile: /etc/hosts File: /etc/dhcp/dhclient.conf File: /etc/welcome.msg File: /etc/default/ifplugd File: /etc/issue run-parts: executing /etc/univention/docker/preinit.d/fix-cron-hardlinks INFO: Switching to standard /sbin/init.debian So "somebody" has to update the ucr dns configuration in the appbox container, otherwise the container looses dns.