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
    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:
DNS Servers:

netplan get

# netplan get
network :
  version: 2
      addresses :
      - ""
      nameservers :
        addresses :
        search: []
      - to: "default"
        via: ""

checking DNS functionality using (ping -4 xs4all.nl):

# ping -4 xs4all.nl
ping: xs4all.nl: Temporary failure in name resolution

ping -c 3

# ping -c 3
PING ( 56(84) bytes of data.
From icm_seq=1 Destination Host Unreachable
From icm_seq=2 Destination Host Unreachable
From 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

  • Try this link - I would first make sure your box has network access, ping -c 3 should return connection - can you confirm?
    – DankyNanky
    Commented Sep 24, 2022 at 12:13
  • added info, resolvconf.service could not be found
    – Luuk
    Commented Sep 24, 2022 at 12:23
  • also during install I was unable to get IP address from DHCP server, so i am using fixed IP address
    – Luuk
    Commented Sep 24, 2022 at 12:25
  • 1
    I will need to change the question to "How can I get network working?" But that's (in my case) a Windows issue 🤔🤬 (All my Hyper-V stuff does not have network any more)
    – Luuk
    Commented Sep 24, 2022 at 12:56
  • 1
    Again 1 hour wasted because something, that used to work, suddenly stopped working without a warning...
    – Luuk
    Commented Sep 24, 2022 at 14:08

1 Answer 1


Your issue here isn't that DNS resolution is failing, it's that you have no routes to the outside world. First, make sure you can reach your router from your VM:

ping -c 3

If you can, then the issue is either some firewall, or another route being the issue. The fact that you cannot ping an IP Address external to the network, indicates that you have an incorrectly configured NIC, or Firewall. You may need to disable your firewall as a valid test.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .