ubuntu:networking:dns:troubleshooting:dns_resolver_not_working

Differences

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

Link to this comparison view

Next revision
Previous revision
ubuntu:networking:dns:troubleshooting:dns_resolver_not_working [2021/01/10 21:26] – created peterubuntu:networking:dns:troubleshooting:dns_resolver_not_working [2021/01/13 10:17] (current) peter
Line 13: Line 13:
 <code bash> <code bash>
 systemd-resolve --status systemd-resolve --status
 +</code>
 +
 +----
 +
 +===== Check logs =====
 +
 +<code bash>
 +sudo journalctl -u systemd-resolved
 </code> </code>
  
Line 35: Line 43:
 sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
 </code> </code>
 +
 +Alternatively, try:
 +
 +<code bash>
 +sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
 +</code>
 +
 +
  
 </WRAP> </WRAP>
  
 +
 +----
 +
 +try
 +
 +<code bash>
 +sudo dpkg-reconfigure resolvconf
 +</code>
 +
 +----
 +
 +
 +Only if above does not work, try:
 +
 +Edit /etc/systemd/resolved.conf and add entry:
 +
 +<file bash /etc/systemd/resolved.conf>
 +[Resolve] 
 +DNS=192.168.1.1
 +</file>
 +
 +----
 +
 +
 +===== References =====
 +
 +https://wiki.archlinux.org/index.php/Systemd-resolved
 +
 +https://www.freedesktop.org/software/systemd/man/resolved.conf.html
 +
 +https://man.archlinux.org/man/systemd-resolved.8#/ETC/RESOLV.CONF
ubuntu/networking/dns/troubleshooting/dns_resolver_not_working.1610313982.txt.gz · Last modified: 2021/01/10 21:26 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki