You are not logged in.

#1 2021-01-28 09:29:27

callmer
Member
Registered: 2021-01-07
Posts: 80

[SOLVED]ping: Name or service not known

I know that this question asked many time, but for me solutions that I saw didn't work. Below I enumerate some of them. Yeah in additional, I have an Arch on my laptop and iwctl shows It's connected to my wireless device, But I can;t use internet (pacman, curl as well)
1.delete and rewrite /etc/resolv.conf (I had 8.8.8.8 I added 1.1.1.1 and 1.0.0.1 and restarted resolved.service)
2.install dhcp from liveUSB, then boot arch again and execute dhcp then dhcp 'station' (wlan0 for me). Also I restarted dhcpd, reenabled it, nothing works.

I tried other methods too, I'll add them when I will remember details (don't want to mislead). Thanks in advance.

Solved: don't use two network clients (dhcpcd and nm in my case) be sure that this clients configured right to show the internet connection tool (it was iwd for my case and I switched to nmcli)

Last edited by callmer (2021-01-29 13:01:05)

Offline

#2 2021-01-28 12:31:11

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: [SOLVED]ping: Name or service not known

2.install dhcp from liveUSB, then boot arch again and execute dhcp then dhcp 'station' (wlan0 for me). Also I restarted dhcpd, reenabled it, nothing works.

You're aware that dhcp is a protocol and dhcpd is the dhcp server and nothing of this really supports resolved?

Post the otputs of

ip a
ip r
stat /etc/resolve.conf
cat /etc/resolve.conf

Also: how did you install archlinxu and did you read https://wiki.archlinux.org/index.php/Ne … figuration and its sub-links?

Offline

#3 2021-01-28 19:41:09

callmer
Member
Registered: 2021-01-07
Posts: 80

Re: [SOLVED]ping: Name or service not known

seth wrote:

2.install dhcp from liveUSB, then boot arch again and execute dhcp then dhcp 'station' (wlan0 for me). Also I restarted dhcpd, reenabled it, nothing works.

You're aware that dhcp is a protocol and dhcpd is the dhcp server and nothing of this really supports resolved?

Post the otputs of

ip a
ip r
stat /etc/resolve.conf
cat /etc/resolve.conf

Also: how did you install archlinxu and did you read https://wiki.archlinux.org/index.php/Ne … figuration and its sub-links?

I didn't know that it can't help, But I saw in forum that it helped, and so gift a try.

I can't share results via internet so I shot all results
https://ibb.co/PmzGMbL

Yeah, I read this network configuration in wiki

Last edited by callmer (2021-01-28 19:46:27)

Offline

#4 2021-01-28 21:21:28

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: [SOLVED]ping: Name or service not known

What you hopefully saw was "dhcpcd" - a dhcp client daemon.

eno2 (wired) and wlan0 are both up, but neither has a carrier (cable for eno2, wpa_supplicant or iwd for wlan0)

This is not a resolver issue.
For a dhcpcd hook, see https://wiki.archlinux.org/index.php/Dh … supplicant

iwctl shows It's connected to my wireless device

Please post the actual output.
What did you do to establish the carrier?
https://wiki.archlinux.org/index.php/Iwd#iwctl

You probably want to stop systemd-resolved, also please post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Offline

#5 2021-01-29 07:33:00

callmer
Member
Registered: 2021-01-07
Posts: 80

Re: [SOLVED]ping: Name or service not known

seth wrote:

What you hopefully saw was "dhcpcd" - a dhcp client daemon.

eno2 (wired) and wlan0 are both up, but neither has a carrier (cable for eno2, wpa_supplicant or iwd for wlan0)

This is not a resolver issue.
For a dhcpcd hook, see https://wiki.archlinux.org/index.php/Dh … supplicant

iwctl shows It's connected to my wireless device

Please post the actual output.
What did you do to establish the carrier?
https://wiki.archlinux.org/index.php/Iwd#iwctl

You probably want to stop systemd-resolved, also please post the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

https://ibb.co/cY4zNH5

Offline

#6 2021-01-29 08:29:53

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: [SOLVED]ping: Name or service not known

iwd isn't even enabled, but networkmanager and dhcpcd are

Pick *one* networkmanaging service and configure the network using it.
You cannot just mix a client with a service and running two services (NM & dhcpcd) in parallel will have them knock out each other.

If you want to use NM w/ iwd see https://wiki.archlinux.org/index.php/Ne … Fi_backend

Offline

#7 2021-01-29 09:12:02

callmer
Member
Registered: 2021-01-07
Posts: 80

Re: [SOLVED]ping: Name or service not known

seth wrote:

iwd isn't even enabled, but networkmanager and dhcpcd are

Pick *one* networkmanaging service and configure the network using it.
You cannot just mix a client with a service and running two services (NM & dhcpcd) in parallel will have them knock out each other.

If you want to use NM w/ iwd see https://wiki.archlinux.org/index.php/Ne … Fi_backend

Thank you so much!!! I just connected with nmcli and it worked. I even hadn't understood what this packages actually do, but now I know. Thanks and sorry for time you spent.

Offline

#8 2021-01-29 12:28:26

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: [SOLVED]ping: Name or service not known

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB