I just install a new Virtual machine using Hyper-V server, and ubuntu-22.04.1-live-server-amd64.iso
After install, I notice that DNS is not functional. I have seen multiple question/answers about replacing /etc/resolv.conf
by another version but NetworkManager is not installed.
# systemctl status NetworkManager
Unit NetworkManager.service could not be found
resolvectl status
# resolvectl status
Global
Protocols: - LLMNR -mDNS -DNSOverTLS -DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (etho)
Current Scopes:
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.178.1
DNS Servers: 1.1.1.1 192.168.178.1
netplan get
# netplan get
network :
version: 2
ethernets:
ethO:
addresses :
- "192.168.178.44/24"
nameservers :
addresses :
- 1.1.1.1
- 192.168.178.1
search: []
routes:
- to: "default"
via: "192.168.178.1"
checking DNS functionality using (ping -4 xs4all.nl
):
# ping -4 xs4all.nl
ping: xs4all.nl: Temporary failure in name resolution
ping 1.1.1.1 -c 3
# ping 1.1.1.1 -c 3
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
From 192.168.178.44 icm_seq=1 Destination Host Unreachable
From 192.168.178.44 icm_seq=2 Destination Host Unreachable
From 192.168.178.44 icm_seq=3 Destination Host Unreachable
also sudo systemctl status resolvconf.service
:
Unit resolvconf.service could not be found
What is the correct way to get network working?
P.S. I hope I did share enough info, if not I will add info
ping 1.1.1.1 -c 3
should return connection - can you confirm? – DankyNanky Sep 24 '22 at 12:13resolvconf.service could not be found
– Luuk Sep 24 '22 at 12:231.1.1.1
indicates that this box has no internet, not that DNS is failing. – DankyNanky Sep 24 '22 at 12:27