Hi,
I'm using the official ubuntu 22.04 cloud image which I'm customizing with cloud-init.
All settings work, except setting the nameserver.
It always sticks to the default nameserver.
Has anyone else run into a similar issue?
I've also tried installing resolvconf, but still same issue.
/etc/resolv.conf
I'm using the official ubuntu 22.04 cloud image which I'm customizing with cloud-init.
All settings work, except setting the nameserver.
It always sticks to the default nameserver.
Has anyone else run into a similar issue?
I've also tried installing resolvconf, but still same issue.
/etc/resolv.conf
Code:
# 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
Code:
root@asdfasdfasdf:~# resolvectl status
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign
Link 2 (eth0)
Current Scopes: none
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported