ubuntu:networking:dns:configure_dns
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:networking:dns:configure_dns [2021/01/13 11:32] – [Check status] peter | ubuntu:networking:dns:configure_dns [2022/03/22 10:27] (current) – peter | ||
---|---|---|---|
Line 42: | Line 42: | ||
<WRAP info> | <WRAP info> | ||
**NOTE: | **NOTE: | ||
+ | |||
+ | DNSSEC helps prevent a potential attacker from modifying your DNS responses. | ||
</ | </ | ||
---- | ---- | ||
- | ==== Restart systemd ==== | + | ==== To use multiple resolvers and IPv6 ==== |
+ | |||
+ | <file bash / | ||
+ | [Resolve] | ||
+ | # Use Quad9.net DNS, and Cloudflare DNS. | ||
+ | # Both supports DNS over TLS and DNSSEC, | ||
+ | # and promises not to log DNS queries. | ||
+ | DNS=2620: | ||
+ | 2606: | ||
+ | FallbackDNS=2620: | ||
+ | 2606: | ||
+ | # Attempt to use DNS over TLS. | ||
+ | DNSOverTLS=opportunistic | ||
+ | # Enforce DNSSEC validation. | ||
+ | DNSSEC=true | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Restart | ||
<code bash> | <code bash> | ||
sudo systemctl restart systemd-resolved.service | sudo systemctl restart systemd-resolved.service | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
---- | ---- | ||
+ | |||
+ | ==== Check the systemd-resolv service is running ==== | ||
+ | |||
+ | <code bash> | ||
+ | sudo systemctl status systemd-resolved.service | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | ● systemd-resolved.service - Network Name Resolution | ||
+ | | ||
+ | | ||
+ | Docs: man: | ||
+ | | ||
+ | | ||
+ | | ||
+ | Main PID: 1160 (systemd-resolve) | ||
+ | | ||
+ | Tasks: 1 (limit: 77016) | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Mar 17 19:28:19 bigmamba systemd[1]: Starting Network Name Resolution... | ||
+ | Mar 17 19:28:19 bigmamba systemd-resolved[1160]: | ||
+ | Mar 17 19:28:19 bigmamba systemd-resolved[1160]: | ||
+ | Mar 17 19:28:19 bigmamba systemd-resolved[1160]: | ||
+ | Mar 17 19:28:19 bigmamba systemd-resolved[1160]: | ||
+ | Mar 17 19:28:19 bigmamba systemd[1]: Started Network Name Resolution. | ||
+ | Mar 17 19:30:37 bigmamba systemd-resolved[1160]: | ||
+ | Mar 20 10:47:01 bigmamba systemd-resolved[1160]: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
==== Check status ==== | ==== Check status ==== | ||
Line 85: | Line 146: | ||
---- | ---- | ||
- |
ubuntu/networking/dns/configure_dns.1610537575.txt.gz · Last modified: 2021/01/13 11:32 by peter