ubuntu:networking:dns:etc_resolv.conf
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:networking:dns:etc_resolv.conf [2021/01/10 21:35] – peter | ubuntu:networking:dns:etc_resolv.conf [2021/01/13 11:05] (current) – [Display /etc/resolv.conf] peter | ||
---|---|---|---|
Line 7: | Line 7: | ||
* **/ | * **/ | ||
* If DNS resolver changes are needed then do this through systemd. | * If DNS resolver changes are needed then do this through systemd. | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== List / | ||
+ | |||
+ | <code bash> | ||
+ | ls -al / | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | lrwxrwxrwx 1 root root 32 Jan 10 18:50 / | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | It may instead be a symlink to **/ | ||
+ | |||
+ | If not then to fix try: | ||
+ | |||
+ | <code bash> | ||
+ | sudo ln -sf / | ||
+ | </ | ||
+ | |||
</ | </ | ||
Line 20: | Line 47: | ||
<code bash> | <code bash> | ||
- | # Dynamic resolv.conf(5) | + | # This file is managed |
- | # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN | + | # |
- | # 127.0.0.53 is the systemd-resolved stub resolver. | + | # This is a dynamic resolv.conf file for connecting local clients directly to |
- | # run "systemd-resolve --status" | + | # all known uplink DNS servers. This file lists all configured search domains. |
+ | # | ||
+ | # Third party programs must not access this file directly, but only through | ||
+ | # symlink at /etc/resolv.conf. To manage man: | ||
+ | # replace this symlink by a static file or a different symlink. | ||
+ | # | ||
+ | # See man:systemd-resolved.service(8) for details about the supported modes of | ||
+ | # operation for / | ||
- | nameserver | + | nameserver |
+ | search localdomain | ||
</ | </ | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
+ | |||
+ | Usually it would only show as 192.168.1.1 or similar if DNS changes had been made in networking settings; such as in / | ||
</ | </ | ||
ubuntu/networking/dns/etc_resolv.conf.1610314552.txt.gz · Last modified: 2021/01/10 21:35 by peter