mbtpani
Posts: 3
Joined: Sun Feb 28, 2016 5:36 am

Cannot resolve hostname

Sun Feb 28, 2016 5:44 am

Hi,

I'm new user of Raspberry PI and trying to setup a internet connection, i'm successful in connecting my router/modem and could see the IP assigned Raspberry PI, but when i try to access any website i'm getting an error "Cannot resolve hostname".

Any information in this regard would be more helpful.

Thanks
M Bala

fsr
Posts: 88
Joined: Wed Jan 13, 2016 2:29 am

Re: Cannot resolve hostname

Sun Feb 28, 2016 9:15 am

what does /etc/resolv.conf say?

Code: Select all

cat /etc/resolv.conf

mbtpani
Posts: 3
Joined: Sun Feb 28, 2016 5:36 am

Re: Cannot resolve hostname

Sun Feb 28, 2016 1:09 pm

fsr wrote:what does /etc/resolv.conf say?

Code: Select all

cat /etc/resolv.conf
It was empty and then I added the below entry

name server 8.8.8.8

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Cannot resolve hostname

Sun Feb 28, 2016 6:18 pm

mbtpani wrote: name server 8.8.8.8
It needs to be

Code: Select all

nameserver 8.8.8.8
with NO SPACES.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”