For Ubuntu 22.04.1 LTS
sudo vim /etc/netplan/01-netcfg.yaml
update nameservers to 1.1.1.1 and 8.8.8.8
nameservers:
addresses:
- 1.1.1.1
- 8.8.8.8
then apply
sudo netplan apply
For Ubuntu 22.04.1 LTS
sudo vim /etc/netplan/01-netcfg.yaml
update nameservers to 1.1.1.1 and 8.8.8.8
nameservers:
addresses:
- 1.1.1.1
- 8.8.8.8
then apply
sudo netplan apply