diff --git a/etc/systemd/resolved.conf.d/general.conf b/etc/systemd/resolved.conf.d/general.conf new file mode 100644 index 00000000..5bffed67 --- /dev/null +++ b/etc/systemd/resolved.conf.d/general.conf @@ -0,0 +1,5 @@ +[Resolve] +#DNSSEC=allow-downgrade +DNSSEC=true +DNSOverTLS=opportunistic +Cache=true diff --git a/etc/systemd/resolved.conf.d/quad9.conf b/etc/systemd/resolved.conf.d/quad9.conf new file mode 100644 index 00000000..66f296e4 --- /dev/null +++ b/etc/systemd/resolved.conf.d/quad9.conf @@ -0,0 +1,15 @@ +[Resolve] +DNS=2620:fe::9 149.112.112.112 2620:fe::fe 9.9.9.9 +Domains=~. +DNSSEC=true +DNSOverTLS=opportunistic +Cache=true + +# Based on my test DNSOverTLS is not supported in Ubuntu 18.04.x LTS. + +# Sources: +# https://wiki.archlinux.org/index.php/Systemd-resolved +# * request for strict DOT: https://github.com/systemd/systemd/issues/10755 +# * vulnerable to MITM: https://github.com/systemd/systemd/issues/9397 +# https://www.internetsociety.org/blog/2018/12/dns-privacy-in-linux-systemd +# * I wouldn't have found having to set `~.` without this.