User Tools

Site Tools


ubuntu:networking:dns:configure_dns

This is an old revision of the document!


Ubuntu - Networking - DNS - Configure DNS

Using Netplan

Set the DNS

/etc/netplan/01-network-manager-all.yaml
...
[DEVICE_NAME]:
...
    nameservers:
        addresses: [1.1.1.1, 9.9.9.9]

NOTE: The filename under /etc/netplan might be different.

Global DNS Setting

Set the DNS

/etc/systemd/resolved.conf
[Resolve]
DNS=9.9.9.9
FallbackDNS=149.112.112.112
DNSSEC=true
DNSOverTLS=opportunistic

NOTE: This sets both DNSSEC and DNSOverTLS too.


Restart systemd

sudo systemctl restart systemd-resolved.service

Check status

systemd-resolve --status

returns:

Global
    DNS Servers: 9.9.9.9
 
Link 3 [DEVICE_NAME]
      DNSSEC Setting: yes
    DNSSEC Supported: yes
         DNS Servers: 8.26.56.26
                      8.20.247.20

ubuntu/networking/dns/configure_dns.1610537258.txt.gz · Last modified: 2021/01/13 11:27 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki