I removed resolv.conf in order to clear my DNS settings, thinking that it would auto-regenerate on reboot, but it has not, and I can no longer connect to the internet. I can’t post the detailed information of the inxi command due to having no connection on the machine, so I can’t copy paste it.
I’ve tried a few things to fix this issue: sudo resolvconf -u sudo systemctl restart NetworkManager
I tried sudo touch resolv.conf and sudo nano resolv.conf but both give me No such file or directory (nano does it when I try to save and exit the editor).
I can’t recreate the file with nano or touch. When I try to save and exit nano, I get [ Error writing resolv.conf: No such file or directory ] and when i do sudo touch resolv.conf I get touch: cannot touch 'resolv.conf' : No such file or directory.
So I can’t even create before changing owner/permissions etc.
Also, I don’t have the pamaac package manager installed, I think i just have pacman and nothing else.
# Generated by NetworkManager
nameserver 127.0.0.53
options edns0 trust-ad
However, I can’t create a new resolv.conf file with touch or nano, I just get No such file or directory, which is strange, because I’m, CREATING the file, so of course it doesn’t exist.
I tried pacman -S networkmanager and it fails to download the .pkg.tar.zst file and fails to resolve hostnames got loads of stuff (which makes sense as I dont have internet connection because of this issue)
I just did sudo rm resolv.conf no errors. Then did sudo nano resolv.conf and I was able to save it with the output of the previous cat command. Restarting now to see if it works.