cat /etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: ethernets: eno1: dhcp4: true version: 2 But my resolv.conf looks like this:
cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "systemd-resolve --status" to see details about the actual nameservers. nameserver 127.0.0.53 I just want to get DHCPv4 address automaticaly and I want to put staticaly to /etc/resolv.conf few nameservers to resolve and it will be fine. How can I do it? I already googled many solutions, but many of those solutions work only with 18.04 LTS not with 20.04 LTS. Official documentation does not contain examples of how to setup dhcp address automaticaly and DNS staticaly. Override settings in netplan did not work. It did not accept with error like "nameservers:" does not belong there.
Any help will be appreciated. systemd-resolver works. Where does it take the 127.0.0.53 address? When I put nameserver 8.8.8.8 into /etc/resolv.conf it works fine. When I restart computer, the configuration file /etc/resolv.conf remains clear or contains nameserver 127.0.0.53.