You are not logged in.

#1 2020-11-25 14:29:37

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

[SOLVED] Ping: google.com: name or service not known

Hey
I have installed  Archlinuxas  always now new installtion after two try i get into same problem and dont know whats wrong.
When i reboot to system
Internet will disconnect even i did enabled network manager service during installation process.
I connect to internet again iwctl but ping shows :

 ping Temporary failure in name resolution 

After adding

nameserver 8.8.8.8 

To resolv.conf
The error changed to :

Ping:  google.com: name or service not known 

What i did wrong?

Last edited by jwtiyar (2020-11-26 19:46:26)

Offline

#2 2020-11-25 15:04:09

seth
Member
Registered: 2012-09-03
Posts: 50,850

Re: [SOLVED] Ping: google.com: name or service not known

First off, networkmanager and iwctl don't really match up.

What's the output of

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

Next, can you

ping 8.8.8.8
dig @8.8.8.8 google.com

?

Offline

#3 2020-11-25 15:15:05

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: [SOLVED] Ping: google.com: name or service not known

seth wrote:

First off, networkmanager and iwctl don't really match up.

What's the output of

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

Next, can you

ping 8.8.8.8
dig @8.8.8.8 google.com

?

Sorry i have to take picture because i can't access firefox from it:

IMG-20201125-180647.jpg

AND 

IMG-20201125-181239.jpg

Output of ping 8.8.8.8

 Network is unreachable 

I dont have dig command.

Offline

#4 2020-11-25 15:35:46

seth
Member
Registered: 2012-09-03
Posts: 50,850

Re: [SOLVED] Ping: google.com: name or service not known

You don't have a network connection at all, nor any active network managing service.

How do you establish the connection?
Did you follow https://wiki.archlinux.org/index.php/In … figuration and install some network configuration software?

Offline

#5 2020-11-25 15:47:30

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: [SOLVED] Ping: google.com: name or service not known

seth wrote:

You don't have a network connection at all, nor any active network managing service.

How do you establish the connection?
Did you follow https://wiki.archlinux.org/index.php/In … figuration and install some network configuration software?

it Was new installation and every thing went flawsely and connected to internet after rebooting to new system internet was not working and this happen.
And hosrs is same as wiki hosts file.

Last edited by jwtiyar (2020-11-25 15:48:48)

Offline

#6 2020-11-25 15:50:16

seth
Member
Registered: 2012-09-03
Posts: 50,850

Re: [SOLVED] Ping: google.com: name or service not known

That's not an answer to my question at all…

The installation iso ships w/ probably dhcpcd and iwd, but installs neither.
You have to explicitly chose, install and configure a network managing software.

Offline

#7 2020-11-25 15:52:28

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: [SOLVED] Ping: google.com: name or service not known

seth wrote:

That's not an answer to my question at all…

The installation iso ships w/ probably dhcpcd and iwd, but installs neither.
You have to explicitly chose, install and configure a network managing software.

In first i connected to Internet with iwctl after that enabled NetworkManager then reboot.
I don't know if its answer your question

Offline

#8 2020-11-25 15:53:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,536

Re: [SOLVED] Ping: google.com: name or service not known

Was that on the ISO, after you chrooted, or after you booted the new system?

Online

#9 2020-11-25 15:55:18

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: [SOLVED] Ping: google.com: name or service not known

Scimmia wrote:

Was that on the ISO, after you chrooted, or after you booted the new system?

Yes on iso i connected to internet.
After reboot i did lost Internet connection.

Offline

#10 2020-11-25 16:01:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,536

Re: [SOLVED] Ping: google.com: name or service not known

Yeah, the ISO means nothing. You skipped the part of the Installation Guide where it says to install the networking tools you want.

Online

#11 2020-11-25 16:12:51

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: [SOLVED] Ping: google.com: name or service not known

Scimmia wrote:

Yeah, the ISO means nothing. You skipped the part of the Installation Guide where it says to install the networking tools you want.

Thank you for your response
But which part you mean?
I will chroot again to fix it

Last edited by jwtiyar (2020-11-25 16:13:16)

Offline

#12 2020-11-25 16:14:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,605

Re: [SOLVED] Ping: google.com: name or service not known

https://wiki.archlinux.org/index.php/In … l_packages

Arch wiki wrote:

* software necessary for networking,

Offline

#13 2020-11-25 16:15:47

seth
Member
Registered: 2012-09-03
Posts: 50,850

Re: [SOLVED] Ping: google.com: name or service not known

And the one I lined in post #4 …

Offline

#14 2020-11-25 16:39:28

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: [SOLVED] Ping: google.com: name or service not known

V1del wrote:

https://wiki.archlinux.org/index.php/In … l_packages

Arch wiki wrote:

* software necessary for networking,

I did chroot again and connected to internet without problem and start dhcpcd but again after reboot same probelm happen with clean system.
My hostname and hosts i did same as arch wiki instruction.

Last edited by jwtiyar (2020-11-25 16:39:47)

Offline

#15 2020-11-25 16:43:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,536

Re: [SOLVED] Ping: google.com: name or service not known

dhcpcd alone is only going to work for wired connections. You mentioned IWD before, which is wireless, so I assume you're not using a wired connection.

Online

#16 2020-11-25 16:43:09

seth
Member
Registered: 2012-09-03
Posts: 50,850

Re: [SOLVED] Ping: google.com: name or service not known

You also need to *install* dhcpcd.

Offline

#17 2020-11-25 16:45:21

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: [SOLVED] Ping: google.com: name or service not known

Scimmia wrote:

dhcpcd alone is only going to work for wired connections. You mentioned IWD before, which is wireless, so I assume you're not using a wired connection.

Iam using wireless

Offline

#18 2020-11-25 16:46:21

seth
Member
Registered: 2012-09-03
Posts: 50,850

Re: [SOLVED] Ping: google.com: name or service not known

Then you must also install iwd or wpa_supplicant…

Offline

#19 2020-11-25 16:46:35

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: [SOLVED] Ping: google.com: name or service not known

seth wrote:

You also need to *install* dhcpcd.

Yes installed dhcpcd when i was chrooting and enabled it

Offline

#20 2020-11-25 16:50:30

seth
Member
Registered: 2012-09-03
Posts: 50,850

Offline

#21 2020-11-25 16:55:12

jwtiyar
Member
From: Kurdistan
Registered: 2013-01-25
Posts: 62

Re: [SOLVED] Ping: google.com: name or service not known

Thank you seth
I think iwd was the probelm i didn't enabled it before, now i did chroot and enabled both dhcpcd and iwd then now worked.
I had iwd but didn't know i have to enable its service i thought dhcpcd or networkmanager do the trick.

Thank you guys.

Offline

Board footer

Powered by FluxBB