Ubuntu 20.04 with netplan throws malformed address error when cloudflare dns over tls (188.8.131.52:853) is used. Netplan only excepts 184.108.40.206.
Is there a way to configure DoT or DoH with netplan?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
As indicated by the error message, netplan does not support specifying a non-default port for DNS servers; it will only use port 53. I see that systemd-resolved does support non-default ports, so this is a valid feature request for netplan, best reported at https://bugs.launchpad.net/netplan.
I have personally never heard before of providers offering DNSSEC on an alternate port. You might check with your provider if they have a DNSSEC endpoint running on port 53 but a different IP address.
As @slangasek pointed out configuring port 853 for an dns entry with netplan is not supported.
/etc/systemd/resolved.conf is the current way in ubuntu.
# See resolved.conf(5) for details [Resolve] DNS=220.127.116.11 FallbackDNS= #Domains= LLMNR=no MulticastDNS=no DNSSEC=yes DNSOverTLS=yes #Cache=yes DNSStubListener=no