Hello,
I installed a Yunohost instance inside a LXC container with a debian template
Everything was working fluently, but I have the impression that since the update to Yunohost 2.6, it’s not anymore possible to resolve DNS inside the container (ping 8.8.8.8 is working, not ping google.fr).
I made many trials to solve this, so maybe my situation is particular, at the moment, when I start the container, i got in /etc/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
and nothing more … If I add nameserver 127.0.0.1 or 8.8.8.8, it doesn’t work neither
dnsmasq gives :
systemctl status dnsmasq
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled)
Drop-In: /run/systemd/generator/dnsmasq.service.d
└─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf
Active: active (running) since Tue 2017-08-22 10:39:09 BST; 1min 5s ago
Process: 305 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
Process: 283 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
Process: 256 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Main PID: 297 (dnsmasq)
CGroup: /system.slice/dnsmasq.service
└─297 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq…
Aug 22 10:39:08 transitional dnsmasq[297]: using nameserver 85.214.20.141#53
Aug 22 10:39:08 transitional dnsmasq[297]: using nameserver 91.239.100.100#53
Aug 22 10:39:08 transitional dnsmasq[297]: using nameserver 213.73.91.35#53
Aug 22 10:39:08 transitional dnsmasq[297]: using nameserver 89.234.141.66#53
Aug 22 10:39:08 transitional dnsmasq[297]: using nameserver 141.255.128.101#53
Aug 22 10:39:08 transitional dnsmasq[297]: using nameserver 84.200.69.80#53
Aug 22 10:39:08 transitional dnsmasq[297]: using nameserver 80.67.169.40#53
Aug 22 10:39:08 transitional dnsmasq[297]: using nameserver 89.233.43.71#53
Aug 22 10:39:08 transitional dnsmasq[297]: read /etc/hosts - 4 addresses
Aug 22 10:39:09 transitional systemd[1]: Started dnsmasq - A lightweight DHC....
Hint: Some lines were ellipsized, use -l to show in full.
About resolvconf :
systemctl status resolvconf -l
● resolvconf.service - Nameserver information manager
Loaded: loaded (/lib/systemd/system/resolvconf.service; enabled)
Active: active (exited) since Tue 2017-08-22 10:37:55 BST; 10min ago
Docs: man:resolvconf(8)
Process: 47 ExecStart=/sbin/resolvconf --enable-updates (code=exited, status=0/SUCCESS)
Process: 42 ExecStartPre=/bin/touch /run/resolvconf/postponed-update (code=exited, status=0/SUCCESS)
Process: 36 ExecStartPre=/bin/mkdir -p /run/resolvconf/interface (code=exited, status=0/SUCCESS)
Main PID: 47 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/resolvconf.service
I’ve read this : https://yunohost.org/#/dns_resolver_fr
So … I’m a bit lost, which service is supposed to give the DNS servers in yunohost 2.6 : dhcpd, dnsmasq, resolvconf ?
thanks for any advice
++
Benjamin