User Tools

Site Tools


ubuntu:networking:dns:configure_dns

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:networking:dns:configure_dns [2021/01/13 11:43] peterubuntu:networking:dns:configure_dns [2022/03/22 10:27] (current) peter
Line 42: Line 42:
 <WRAP info> <WRAP info>
 **NOTE:**  This sets both DNSSEC and DNSOverTLS too. **NOTE:**  This sets both DNSSEC and DNSOverTLS too.
 +
 +DNSSEC helps prevent a potential attacker from modifying your DNS responses.  systemd-resolved does not enforce this by default.
 </WRAP> </WRAP>
  
 ---- ----
  
-==== To use multiple resolvers ====+==== To use multiple resolvers and IPv6 ====
  
 <file bash /etc/systemd/resolved.conf> <file bash /etc/systemd/resolved.conf>
Line 65: Line 67:
 ---- ----
  
-==== Restart systemd ====+===== Restart the systemd-resolved service =====
  
 <code bash> <code bash>
 sudo systemctl restart systemd-resolved.service sudo systemctl restart systemd-resolved.service
 </code> </code>
 +
 +<WRAP info>
 +**NOTE:**  A restart of the service is needed to allow any DNS changes to take affect.
 +</WRAP>
  
 ---- ----
 +
 +==== Check the systemd-resolv service is running ====
 +
 +<code bash>
 +sudo systemctl status systemd-resolved.service
 +</code>
 +
 +returns:
 +
 +<code bash>
 +● systemd-resolved.service - Network Name Resolution
 +     Loaded: loaded (/lib/systemd/system/systemd-resolved.service; enabled; vendor preset: enabled)
 +     Active: active (running) since Thu 2022-03-17 19:28:19 GMT; 4 days ago
 +       Docs: man:systemd-resolved.service(8)
 +             https://www.freedesktop.org/wiki/Software/systemd/resolved
 +             https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
 +             https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients
 +   Main PID: 1160 (systemd-resolve)
 +     Status: "Processing requests..."
 +      Tasks: 1 (limit: 77016)
 +     Memory: 7.6M
 +     CGroup: /system.slice/systemd-resolved.service
 +             └─1160 /lib/systemd/systemd-resolved
 +
 +Mar 17 19:28:19 bigmamba systemd[1]: Starting Network Name Resolution...
 +Mar 17 19:28:19 bigmamba systemd-resolved[1160]: Positive Trust Anchors:
 +Mar 17 19:28:19 bigmamba systemd-resolved[1160]: . IN DS 20326 8 2 e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
 +Mar 17 19:28:19 bigmamba systemd-resolved[1160]: Negative trust anchors: 10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 23.172.in-addr.arpa 24.172.in-addr.arpa 25.172.in-addr.arpa 26.172.in-addr.arpa 27.172.in-addr.arpa 28.172.in-addr.arpa 29.172.in-addr.arpa 30.172.in->
 +Mar 17 19:28:19 bigmamba systemd-resolved[1160]: Using system hostname 'bigmamba'.
 +Mar 17 19:28:19 bigmamba systemd[1]: Started Network Name Resolution.
 +Mar 17 19:30:37 bigmamba systemd-resolved[1160]: Flushed all caches.
 +Mar 20 10:47:01 bigmamba systemd-resolved[1160]: Flushed all caches.
 +</code>
 +
 +----
 +
  
 ==== Check status ==== ==== Check status ====
Line 104: Line 146:
  
 ---- ----
- 
-===== Restart the systemd-resolved service ===== 
- 
-<code bash> 
-sudo systemctl restart systemd-resolved.service 
-</code> 
- 
- 
ubuntu/networking/dns/configure_dns.1610538196.txt.gz · Last modified: 2021/01/13 11:43 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki