Bug 262290

Summary: After a normal FreeBSD installation and reboot, /etc/resolv.conf will be changed.
Product: Base System Reporter: ykla <yklaxds>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Works As Intended    
Severity: Affects Many People CC: axey.endres, grahamperrin, lwhsu
Priority: ---    
Version: 13.0-RELEASE   
Hardware: Any   
OS: Any   

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`)