Re: iwn(4): problems following unexpected disconnection

From: Graham Perrin <grahamperrin_at_freebsd.org>
Date: Sat, 26 Nov 2022 22:08:52 UTC
On 26/11/2022 16:41, Bjoern A. Zeeb wrote:

> On Sat, 26 Nov 2022, Graham Perrin wrote:
>
>> This morning, I lost Internet connectivity, then realised that the 
>> wlan0 file was missing from:
>>
>> /var/run/resolvconf/interfaces/
>>
>> Without checking logs: I tried a few things to regain name resolution 
>> with Wi-Fi, failed. I resorted to a wired connection.
>
> What did you try?

A good (obvious) question. Apologies for vagueness. Unfortunately, I 
can't give a /definite/ answer because early afternoon, before I first 
wrote, one of my cats thought it amusing to sit on the keyboard and 
somehow crash Xorg. So, I lost some Konsole windows with csh history and 
other essential information.

Available history, after a 14:47 restart of the OS, includes what's below.

Should I be surprised that service netif stop followed by /etc/netstart 
was insufficient for resolvconf(8) to automatically put what's required 
in the resolver(5) configuration file?

/etc/resolv.conf remained empty until after I destroyed wlan0 then began 
using em0. (I have ifconfig_em0: DHCP NOAUTO as outlined at 
<https://lists.freebsd.org/archives/freebsd-net/2022-November/002761.html>.)

11:05 ping -4 freshports.org
11:05 cat /etc/resolv.conf
11:05 service dhclient stop wlan0
11:06 service dhclient start wlan0
11:06 cat /etc/resolv.conf
11:06 service resolv restart
11:06 cat /etc/resolv.conf
11:06 /etc/netstart
11:06 cat /etc/resolv.conf
11:07 cat /etc/resolv.conf
11:07 ifconfig wlan0
11:07 ifconfig wlan0
11:07 resolvconf -u
11:07 cat /etc/resolv.conf
11:07 service netif stop
11:07 /etc/netstart
11:08 cat /etc/resolv.conf
11:08 ifconfig wlan0
11:08 ifconfig wlan0
11:08 ifconfig wlan0
11:08 cat /etc/resolv.conf
11:08 cat /etc/resolv.conf
11:08 cat /etc/resolv.conf
11:08 ifconfig wlan0 destroy
11:08 ifconfig em0 up
11:09 cat /etc/resolv.conf
11:09 service resolv stop
11:09 service dhclient stop em0
11:09 service dhclient start em0
11:09 service resolv start
11:09 cat /etc/resolv.conf
11:09 ping -4 freshports.org