Wi-Fi: rc.conf(5) NOAUTO, service(8) netif start wlan0 and resolvconf(8) after disconnecting from a wired network

grahamperrin

Son of Beastie

Reaction score: 1,043
Messages: 3,499

FreeBSD 13.0-RELEASE-p3 starts with a wired connection to a Belkin router.

re(4) <https://www.freebsd.org/cgi/man.cgi?query=re&sektion=4&manpath=FreeBSD+13.0-RELEASE>

service netif start wlan0 gains the required address from the required wireless router, using DHCP.

I disconnect the network cable, interface re0 disappears, I'm left with the /etc/resolv.conf that was generated by resolvconf(8) for the (Belkin) router that is no longer available.

Neither resolvconf -u nor service resolv restart leads to /etc/resolv.conf gaining the required update.

What must be done, for resolvconf(8) to write what's appropriate for the wireless router?

resolvconf(8) <https://www.freebsd.org/cgi/man.cgi?query=resolvconf&sektion=8&manpath=FreeBSD+13.0-RELEASE>
 
Top