You are not logged in.

#1 2021-04-14 08:33:42

alfzki
Member
Registered: 2021-04-14
Posts: 12

Problem with connection

I've just installed arch linux on my computer.
I'm on gnome 40
I use NetworkManager
after booting into arch, my wifi is connected but I can't open any website

I can't ping archlinux.org, it says : Temporary failure in name resolution
but I can ping 1.1.1.1, 8.8.8.8 or something like that.

when I search on google, I found a solution to do :  ln -sf /run/NetworkManager/no-stub-resolv.conf /etc/resolv.conf

the previous /etc/resolv.conf is a link to /run/NetworkManager/resolv.conf

my internet now fine and I can ping archlinux.org

-no-stub-resolv.conf
-resolv.conf
-----
-What happen to my computer?
-Is it fine to use no-stub-resolv.conf?

Offline

#2 2021-04-14 08:59:11

progandy
Member
Registered: 2012-05-17
Posts: 5,193

Re: Problem with connection

You had no functioning DNS servers set, so it was not possible to resolve domains to ips. Arch Linux configures NetworkManager by default for DNS with systemd-resolved, so you have to either enable that service or change the networkmanager configuration to openresolv. I think using no-stub-resolv.conf is fine as well if networkmanager is the only tool to set dns servers (no separate vpn applications, ...)

https://wiki.archlinux.org/index.php/Ne … esolv.conf
https://man.archlinux.org/man/NetworkManager.conf.5

Last edited by progandy (2021-04-14 09:06:14)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2021-04-14 09:45:10

alfzki
Member
Registered: 2021-04-14
Posts: 12

Re: Problem with connection

progandy wrote:

You had no functioning DNS servers set, so it was not possible to resolve domains to ips. Arch Linux configures NetworkManager by default for DNS with systemd-resolved, so you have to either enable that service or change the networkmanager configuration to openresolv. I think using no-stub-resolv.conf is fine as well if networkmanager is the only tool to set dns servers (no separate vpn applications, ...)

https://wiki.archlinux.org/index.php/Ne … esolv.conf
https://man.archlinux.org/man/NetworkManager.conf.5

Thanks, after enabling systemd-resolved I can use resolv.conf

Offline

Board footer

Powered by FluxBB