Jump to content

ping google.com gives Temporary failure in name resolution

Go to solution Solved by Nayr438,

So then you don't have iwd. Since you have NetworkManager already.
systemctl disable --now systemd-networkd
systemctl enable --now NetworkManager


then follow this, RedHat: Managing wifi connections with nmcli

So I freshly installed Arch Linux, as dual boot using archinstall script and chose the network manager too in one of the options

 

now I’m unable to git clone, ping, pacman -Syy

basically any internet related cmds. I’m currently in a minimal profile, no gui only cli.

 

i tried with systemctl enable NetworkManager it didn’t throw any error but it didn’t even work for me.

 

not sure what the problem is, i tried googling ended up with 2 solutions

1. stackoverflow: that user must have dhcpd and network manager both installed and have to uninstall one, but i dont know how to nor when i tried to do 

systemctl start dhcpcd it gave an error as failed to start and unit … service not found 

2. linustechtips: to enable dhcpcd which i mentioned above 

 

surprisingly it both worked for those users, but not for me

Link to comment
Share on other sites

Link to post
Share on other sites

Can you show us ifconfig?

I sold my soul for ProSupport.

Link to comment
Share on other sites

Link to post
Share on other sites

ok so for some reason when I type ifconfig it gives command not found 

Link to comment
Share on other sites

Link to post
Share on other sites

35 minutes ago, Needfuldoer said:

Can you show us ifconfig?

ok so for some reason when I type ifconfig it gives command not found 

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, MrDragoon said:

ok so for some reason when I type ifconfig it gives command not found 

Sorry, apparently that's outdated knowledge on my part. (I don't use Arch, and it apparently deprecated net-tools ages ago.)

 

Try this instead:

 

ip addr

 

I sold my soul for ProSupport.

Link to comment
Share on other sites

Link to post
Share on other sites

If your aiming for a minimal system with a wired connection you can look at systemd-networkd, which is already part of your system.

If your aiming for a minimal system with wireless, then you can use iwd.
If you plan to have a Desktop Environment or need a GUI then NetworkManager is usually preferred.

 

Before anyone can help you need to decide which one you actually want to use.

 

33 minutes ago, MrDragoon said:

ok so for some reason when I type ifconfig it gives command not found 

because it's not part of the base system, its in net-tools and you don't need it.

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, Needfuldoer said:

Sorry, apparently that's outdated knowledge on my part. (I don't use Arch, and it apparently deprecated net-tools ages ago.)

 

Try this instead:

 

ip addr

 

Here’s the output

image.jpg

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Nayr438 said:

If your aiming for a minimal system with a wired connection you can look at systemd-networkd, which is already part of your system.

If your aiming for a minimal system with wireless, then you can use iwd.
If you plan to have a gui or its a portable device then NetworkManager is usually preferred.

 

Before anyone can help you need to decide which your going to use.

 

because it's not part of the base system, its in net-tools and you don't need it.

So I installed minimal as I wanted to go with Hyperland later and was planning to install someone’s dot files from gitlab.  

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, MrDragoon said:

So I installed minimal as I wanted to go with Hyperland later and was planning to install someone’s dot files from gitlab.  

But you need to figure out what you actually want for networking as they are all configured differently.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Nayr438 said:

But you need to figure out what you actually want for networking as they are all configured differently.

What would you suggest? I’m unaware of these technical details as of now. My usage will be programming, for now web development later on machine learning too. 

Link to comment
Share on other sites

Link to post
Share on other sites

For a simple starter to get networking up over a wired connection
systemctl disable --now NetworkManager

 

/etc/systemd/network/20-wired.network

[Match]
Name=en*

[Network]
DHCP=yes

 

systemctl enable --now systemd-networkd

systemctl enable --now systemd-resolved

ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

Link to comment
Share on other sites

Link to post
Share on other sites

I edited the above post, so please re-read it if you have already.

Link to comment
Share on other sites

Link to post
Share on other sites

3 minutes ago, Nayr438 said:

For a simple starter to get networking up over a wired connection
systemctl disable --now NetworkManager

 

/etc/systemd/network/20-wired.network

[Match]
Name=en*

[Network]
DHCP=yes

 

systemctl enable --now systemd-networkd

systemctl enable --now systemd-resolved

ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

I’m actually using WiFi and not an Ethernet connection, hope that’s not an issue here. 

Link to comment
Share on other sites

Link to post
Share on other sites

Glad it's working.
I would however try to re-symlink /etc/resolve.conf. I'm not sure why it failed in in your screenshot.

which is just

 ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf 

 

Link to comment
Share on other sites

Link to post
Share on other sites

31 minutes ago, Nayr438 said:

Glad it's working.
I would however try to re-symlink /etc/resolve.conf. I'm not sure why it failed in in your screenshot.

which is just

 ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf 

 

Could you possibly also help me reset it to the new? I somehow already made this go bad. I tried to install dotfiles and now I can’t use it when I write qtile, I didn’t try hyperland yet though

heres an image too

and somehow it changed the normal appearance of the terminal which is bothering me.

image.jpg

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×