Soldato
- Joined
- 7 Feb 2004
- Posts
- 8,206
- Location
- North East
Clean install of Ubuntu 20.04 LTS command line on Hyper-V. I've set a static IP and pointed the DNS to 8.8.8.8 in the "01-netcfg.yaml" file as below.
The static IP seems to work fine, can connect over SSH etc, however, DNS don't seem to resolve - eg apt-get update results in a "Temporary failure resolving" error.
If I edit the nameserver in resolv.conf to 8.8.8.8, DNS work for a very short period of time, then the file seems to revert back to default 127.0.0.53 and it doesn't work again
Any ideas?
DNS was working find on 18.04 and I don't think I've done anything differently. End goal is to point the DNS to my router, which has the DNS configured for pihole - this IP doesn't work either, but sticking with google DNS for now until I get it working.
The DNS on the rest of the network is working fine.
Code:
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
addresses: [staticip/24]
gateway: routerip
nameservers:
addresses: [8.8.8.8]
The static IP seems to work fine, can connect over SSH etc, however, DNS don't seem to resolve - eg apt-get update results in a "Temporary failure resolving" error.
If I edit the nameserver in resolv.conf to 8.8.8.8, DNS work for a very short period of time, then the file seems to revert back to default 127.0.0.53 and it doesn't work again
Any ideas?
DNS was working find on 18.04 and I don't think I've done anything differently. End goal is to point the DNS to my router, which has the DNS configured for pihole - this IP doesn't work either, but sticking with google DNS for now until I get it working.
The DNS on the rest of the network is working fine.
Last edited: