We are using lxc Ubuntu 18.04 on proxmox -5.3-7.
Network configuration obtain through DHCP.
We have desactivate /etc/resolv.conf modification over proxmox to get DHCP DNS use:
touch .pve-ignore.resolv.conf
Everything line in /etc/resolv.conf is comment:
# cat /etc/resolv.conf
# --- BEGIN PVE ---
#search digicom.ca
#nameserver 8.8.8.8
# --- END PVE ---
Network status shown DNS entry is OK:
#networkctl status
● State: routable
Address: 172.16.8.23 on eth0 fe80::a0c5:bbff:fe4f:bc on eth0
Gateway: 172.16.8.1 (ICANN, IANA Department) on eth0
DNS: 104.192.16.1
NTP: 172.16.8.3 104.192.20.4 66.70.172.17
systemd-resolve works fine:
#systemd-resolve go.com
go.com: 23.236.60.174
-- Information acquired via protocol DNS in 1.3ms.
-- Data is authenticated: no
But resolve name using ping command or host failed:
# ping go.com
ping: go.com: Temporary failure in name resolution
# host go.com
;; connection timed out; no servers could be reached
The work around is to manually create a link to the systemd-resolve conf file:
mv /etc/resolv.conf /etc/resolv.conf.orig
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
We are using lxc Ubuntu 18.04 on proxmox -5.3-7. resolv. conf
Network configuration obtain through DHCP.
We have desactivate /etc/resolv.conf modification over proxmox to get DHCP DNS use:
touch .pve-ignore.
Everything line in /etc/resolv.conf is comment:
# cat /etc/resolv.conf
# --- BEGIN PVE ---
#search digicom.ca
#nameserver 8.8.8.8
# --- END PVE ---
Network status shown DNS entry is OK:
fe80: :a0c5:bbff: fe4f:bc on eth0
104.192. 20.4
66.70. 172.17
#networkctl status
● State: routable
Address: 172.16.8.23 on eth0
Gateway: 172.16.8.1 (ICANN, IANA Department) on eth0
DNS: 104.192.16.1
NTP: 172.16.8.3
systemd-resolve works fine:
#systemd-resolve go.com
go.com: 23.236.60.174
-- Information acquired via protocol DNS in 1.3ms.
-- Data is authenticated: no
But resolve name using ping command or host failed:
# ping go.com
ping: go.com: Temporary failure in name resolution
# host go.com
;; connection timed out; no servers could be reached
The work around is to manually create a link to the systemd-resolve conf file: conf.orig resolve/ resolv. conf /etc/resolv.conf
mv /etc/resolv.conf /etc/resolv.
ln -s /run/systemd/