Bug 262290 - After a normal FreeBSD installation and reboot, /etc/resolv.conf will be changed.
Summary: After a normal FreeBSD installation and reboot, /etc/resolv.conf will be chan...
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-02 08:41 UTC by ykla
Modified: 2022-03-03 09:34 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ykla 2022-03-02 08:41:08 UTC
When installing FreeBSD, the network was configured and DNS was set up correctly. However, when rebooting into a new system, the DNS in /etc/resolv.conf will be changed, and the DNS will most likely be 127.0.0.1, which is the wrong DNS and will not connect to the network. And the DNS device performed during the installation will be commented out with # to make it invalid. FreeBSD should keep the DNS settings that were made at the time of installation unmodified.
Comment 1 Axey Gabriel Muller Endres 2022-03-02 11:50:44 UTC
Did you enable local_unbound during installation? Then it's all right
Comment 2 ykla 2022-03-03 08:29:01 UTC
Thanks a lot.
Comment 3 Li-Wen Hsu freebsd_committer freebsd_triage 2022-03-03 09:34:03 UTC
If you have local_unbound enabled, having 127.0.0.1 /etc/resolv.conf is correct because it supposes to use the local caching resolver.  If you cannot "connect to the network" (I guess this means "cannot resolve a hostname"), please check if the local_unbound daemon is really running. (`$ service local_unbound status`)