0

I am having Ubuntu created and running under Hyper-V. But hosts cannot be resolved unless they are added to the hosts file. Any ideas on how this should be managed to make it work?

I reach ping 8.8.8.8

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=61 time=30.3 ms

nslookup google.com

Server:     8.8.8.8
Address:    8.8.8.8#53

** server can't find google.com: NXDOMAIN

/etc/systemd/resolved.conf

[Resolve]
DNS=8.8.8.8
FallbackDNS=8.8.4.4

systemd-resolve --status

Global
         DNS Servers: 8.8.8.8
  DNSSEC NTA: 10.... arpa
                      corp
                      d.f.ip6.arpa
                      home
                      internal

/etc/NetworkManager/NetworkManager.conf

[main]
plugins=ifupdown,keyfile
dns=default

[ifupdown]
managed=false

[device]
wifi.scan-rand-mac-address=no

/etc/resolvconf/resolv.conf.d/tail

nameserver 8.8.8.8
nameserver 8.8.8.4

/etc/network/interfaces

dns-addresses 8.8.4.4,8.8.8.8
  • What if you try "dig @8.8.8.8 google.com" – madacoda May 30 at 1:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.