You are not logged in.

#1 2016-05-23 18:21:28

Talster
Member
Registered: 2016-05-18
Posts: 23

[SOLVED] Can ping 8.8.8.8, but cannot ping any host name or internet

Hi all, I'm not sure what the problem is here. Whether it's just me not checking my sanity (I did) or me being dumb, I can't get the Internet to work.

I can ping addresses, but no host names. 8.8.8.8 works, but www.google.com does not. When I do, it gives me "Name or service not known".

Any step I can take towards solving this issue?

Last edited by Talster (2016-05-23 19:35:27)

Offline

#2 2016-05-23 18:46:19

netadmin
Member
Registered: 2016-04-28
Posts: 45

Re: [SOLVED] Can ping 8.8.8.8, but cannot ping any host name or internet

what do you have in /etc/resolv.conf

Offline

#3 2016-05-23 19:00:43

Talster
Member
Registered: 2016-05-18
Posts: 23

Re: [SOLVED] Can ping 8.8.8.8, but cannot ping any host name or internet

netadmin wrote:

what do you have in /etc/resolv.conf

[ New File ]

Attempts to write to the file results in a

 [ Error writing /etc/resolv.conf: No such file or directory ]

Offline

#4 2016-05-23 19:07:40

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

Re: [SOLVED] Can ping 8.8.8.8, but cannot ping any host name or internet

Talster wrote:
netadmin wrote:

what do you have in /etc/resolv.conf

[ New File ]

Attempts to write to the file results in a

 [ Error writing /etc/resolv.conf: No such file or directory ]

Is it a installed system or are you in chroot?


I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.

Offline

#5 2016-05-23 19:10:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Can ping 8.8.8.8, but cannot ping any host name or internet

Talster wrote:

I can't get the Internet to work.

That isn't all that useful. Describe how you are managing your connection; what card/driver you have installed and what happens when you try to connect manually.

Please see How To Ask Questions The Smart Way


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2016-05-23 19:16:07

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,876
Website

Re: [SOLVED] Can ping 8.8.8.8, but cannot ping any host name or internet

Talster wrote:

Attempts to write to the file results in a

 [ Error writing /etc/resolv.conf: No such file or directory ]

How are you attempting to write to the file? Which command(s) did you use?

I would use:

# echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" > /etc/resolv.conf

EDIT: a more robust method would be:

# systemctl enable systemd-resolved --now
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

Then configure namservers via /etc/systemd/resolved.conf as per resolved.conf(5)

Last edited by Head_on_a_Stick (2016-05-23 19:20:34)


Juri divino omnia sunt communia

Offline

#7 2016-05-23 19:34:20

Talster
Member
Registered: 2016-05-18
Posts: 23

Re: [SOLVED] Can ping 8.8.8.8, but cannot ping any host name or internet

jasonwryan wrote:
Talster wrote:

I can't get the Internet to work.

That isn't all that useful. Describe how you are managing your connection; what card/driver you have installed and what happens when you try to connect manually.

Please see How To Ask Questions The Smart Way

I apologize! I swear, I was so tired and I was so confused about this issue that I didn't know where to start with reports.

Offline

#8 2016-05-23 19:34:51

Talster
Member
Registered: 2016-05-18
Posts: 23

Re: [SOLVED] Can ping 8.8.8.8, but cannot ping any host name or internet

Head_on_a_Stick wrote:
Talster wrote:

Attempts to write to the file results in a

 [ Error writing /etc/resolv.conf: No such file or directory ]

How are you attempting to write to the file? Which command(s) did you use?

I would use:

# echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" > /etc/resolv.conf

EDIT: a more robust method would be:

# systemctl enable systemd-resolved --now
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

Then configure namservers via /etc/systemd/resolved.conf as per resolved.conf(5)

This worked! Sending this forum reply from my installation now. Thanks a million!

For anyone reading: the second fix was the one that fixed it completely. I added the desired DNS to the DNS= section, and it worked. Here is the fix once more:

# systemctl enable systemd-resolved --now
# ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

Then configure namservers via /etc/systemd/resolved.conf as per resolved.conf(5)

Last edited by Talster (2016-05-23 19:36:29)

Offline

Board footer

Powered by FluxBB