I'm running Ubuntu Server 24.04.1 LTS and having issues doing things the "correct" ubuntu way.
First, I'm trying to get systemd-resolved to work:
- I specifically want to use systemd-resolved and to keep caching. I also want to continue to run in stub mode.
- If at all possible, I want to avoid un-symlinking or modifying existing files. I would rather add drop-in configs where possible.
- The nameservers I specified via
netplanappear in/run/systemd/resolve/resolv.conf, but/run/systemd/resolve/stub-resolv.confis what's symlinked at/etc/resolv.conf. resolvectl query google.comworks as expected and caches responses.host google.comdoes not work and returnscommunications error to 127.0.0.53#53: timed out.systemctl status systemd-resolvedshows the service running with a status of "processing requests".lsof -i :53showssystemd-resolveat127.0.0.53and127.0.0.54tcp + udp, but only the TCP entries have "(LISTEN)" next to them.
Second, I'm trying to disable ipv6 altogether:
- I have set several values in
/etc/sysctl.d/local.confbut this doesn't seem to be impacting anything after a reboot. networkctl statusshows my network in aroutablestate but apartialonline state.
Not sure what I'm doing wrong but I feel like this is the hardest I've ever had to fight a linux install.
/etc/netplan/99-ip.yaml
network:
version: 2
ethernets:
eno1:
dhcp4: false
dhcp6: false
addresses:
- 192.168.1.137/24
routes:
- to: default
via: 192.168.1.254
nameservers:
addresses: [9.9.9.11,149.112.112.11]
/etc/sysctl.d/local.conf
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.all.forwarding=0
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
net.ipv6.conf.eno1.disable_ipv6=1