You are not logged in.
Hello everyone, this is my first post here on these forums so please bear with me:
I connect to my phone (which has it's hotspot turned on, that's where I get my internet from on other devices), I open Firefox (or any other program that utilises my internet connection), I get a connection error.
NMCLI shows me that I am connected
NMTUI shows me that I am connected
NetworkManager.service is running and active
My WiFi card's status is UP and it is active
Pinging 1.1.1.1 works, I get packets in response
Pinging any website does not work giving me a connection error, 'Temporary failure in name resolution'
Checking the status of NetworkManager it shows zero errors - Something worrying I did find though was that there is NO 'resolf.conf' file in the /etc/ directory
Trying to create one (even as root) gives me this error in Vim: 'E166: Can't open linked file for writing'
In Nano, I get a similar error: 'Error writing resolv.conf: No such file or directory'
Trying to use the touch command: 'Cannot touch resolv.conf: No such file or directory'
I checked if my system is mounted as read-only: that is false, I have the ability to write ( I have RW or Read/Write permissions
I have attempted rebooting and restarting NetworkManager, to no avail.. Any ideas or help are welcome
Last edited by matiiska (2024-03-24 19:20:21)
Offline
It sounds like your network is up. Your DNS resolver is broken.
What is the output of resolvectl ?
What is the output of resolvectl query archlinux.org ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Output of 'resolvectl':
Failed to get global data: Could not activate remote peer: activation request failed: unknown unit.
Output of 'resolvectl query archlinux.org':
archinux.org: resolve call failed: Could not activate remote peer: activation request failed: unknown unit.
Offline
$ pacman -Qo /etc/resolv.conf
/etc/resolv.conf is owned by filesystem 2024.01.19-1
Please post the output (run as root) of pacman -Qikk filesystem
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Lone_Wolf here is the output of 'pacman -Qikk filesystem'
backup file: filesystem: /etc/fstab (Modification time mismatch)
backup file: filesystem: /etc/fstab (Size mismatch)
backup file: filesystem: /etc/fstab (SHA256 checksum mismatch)
backup file: filesystem: /etc/group (Modification time mismatch)
backup file: filesystem: /etc/group (Size mismatch)
backup file: filesystem: /etc/group (SHA256 checksum mismatch)
backup file: filesystem: /etc/gshadow (Modification time mismatch)
backup file: filesystem: /etc/gshadow (Size mismatch)
backup file: filesystem: /etc/gshadow (SHA256 checksum mismatch)
backup file: filesystem: /etc/passwd (Modification time mismatch)
backup file: filesystem: /etc/passwd (Size mismatch)
backup file: filesystem: /etc/passwd (SHA256 checksum mismatch)
warning: filesystem: /etc/resolv.conf (File type mismatch) <----------------------------------------------- this is probably the message you are looking for
backup file: filesystem: /etc/shadow (Modification time mismatch)
backup file: filesystem: /etc/shadow (Size mismatch)
backup file: filesystem: /etc/shadow (SHA256 checksum mismatch)
backup file: filesystem: /etc/shells (Modification time mismatch)
backup file: filesystem: /etc/shells (Size mismatch)
backup file: filesystem: /etc/shells (SHA256 checksum mismatch)
backup file: filesystem: /etc/subgid (Modification time mismatch)
backup file: filesystem: /etc/subgid (Size mismatch)
backup file: filesystem: /etc/subgid (SHA256 checksum mismatch)
backup file: filesystem: /etc/subuid (Modification time mismatch)
backup file: filesystem: /etc/subuid (Size mismatch)
backup file: filesystem: /etc/subuid (SHA256 checksum mismatch)
filesystem: 121 total files, 1 altered file
Offline
I assume that means that you made it a symlink? You do that when running systemd-resolved, but is that running?
Offline
I have no idea what a symlink is, nor I have any idea if I have made one
Offline
Okay, I have it solved! Here's what I did step by step:
1. CD into /etc/systemd
2. Open the file 'resolved.conf' with a text editor
3. UNCOMMENT both the 'DNS' and 'FallbackDNS' lines
4. Add 1.1.1.1 (for cloudflare DNS) or any other that works
5. Write and quit
6. First enable if not already, then restart the systemd-networked service (sudo systemctl restart systemd-networked)
Thank you to all repliers
Offline
What is now the output of "resolvectl"?
Offline
it seems there is even better answer: https://superuser.com/questions/1427311 … e1-service (the problem is a conflict between network-manager and systemd-resolved.service.
Offline
Next NetworkManager version will avoid trying to contact resolved if it is not already running. –
grawity
Commented Apr 19, 2019 at 11:25
There's no inherent conflict or problem between NM and resolved, but resolved can be peculiar to be setup (because its behavior depend on filetypes…)
Offline