User Tools

Site Tools


ubuntu:networking:dns:etc_resolv.conf

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:etc_resolv.conf [2021/01/10 21:48] peterubuntu:networking:dns:etc_resolv.conf [2021/01/13 11:05] (current) – [Display /etc/resolv.conf] peter
Line 20: Line 20:
  
 <code bash> <code bash>
-lrwxrwxrwx 1 root root 32 Jan 10 18:50 /etc/resolv.conf -> /run/systemd/resolve/stub-resolv.conf+lrwxrwxrwx 1 root root 32 Jan 10 18:50 /etc/resolv.conf -> /run/systemd/resolve/resolv.conf
 </code> </code>
  
 <WRAP info> <WRAP info>
-**NOTE:**  This shows that **/etc/resolv.conf** is a symlink to **/run/systemd/resolve/stub-resolv.conf**.+**NOTE:**  This shows that **/etc/resolv.conf** is a symlink to **/run/systemd/resolve/resolv.conf**. 
 + 
 +It may instead be a symlink to **/run/systemd/resolve/stub-resolv.conf**.  Also ok. 
 + 
 +If not then to fix try: 
 + 
 +<code bash> 
 +sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf 
 +</code> 
 </WRAP> </WRAP>
  
Line 50: Line 59:
 # operation for /etc/resolv.conf. # operation for /etc/resolv.conf.
  
-nameserver 127.0.0.53+nameserver 192.168.1.1
 search localdomain search localdomain
 </code> </code>
  
 <WRAP info> <WRAP info>
-**NOTE:**  The **127.0.0.53** address is the proper setting.+**NOTE:**  If the **nameserver** is **127.0.0.53** then this is fine too - It is set as default by Ubuntu. 
 + 
 +Usually it would only show as 192.168.1.1 or similar if DNS changes had been made in networking settings; such as in /etc/netplan.
  
-If is set by Ubunut. 
 </WRAP> </WRAP>
  
ubuntu/networking/dns/etc_resolv.conf.1610315322.txt.gz · Last modified: 2021/01/10 21:48 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki