sono su Windows 11 con una Ubuntu installata tramite WSL (dalla 18.04 me la sono portata avanti fino alla 22.04 senza problemi) e da qualche giorno, ad ogni avvio di sistema non funziona più la rete della VM, il file resolf.con lo trovo resettato con DNS sbagliati:
Codice: Seleziona tutto
:/etc$ cat resolv.conf
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 172.31.0.1
Ho provato ad abilitare le righe commentate ma niente, viene sovrascritto tutto al riavvio.
Il file resolv.conf in etc è un link al file resolv.conf che sita in mnt wsl:
Codice: Seleziona tutto
:/etc$ ll resolv.conf
lrwxrwxrwx 1 root root 20 Feb 22 08:24 resolv.conf -> /mnt/wsl/resolv.conf
Grazie a tutti!