Name or service not known error

0 votes

I am not able to connect to the internet. I have connected to a Wifi and wifi works on other devices. I am trying to ping to Google but it is showing the below error

$ ping www.google.com

ping: www.google.com: Name or Service not known

Please help.

Apr 1, 2019 in Linux Administration by Yogi
9,388 views

2 answers to this question.

0 votes

Seems like there is no nameserver set.

Run the below command in the terminal and try again

$ echo ‘nameserver 8.8.8.8> /etc/resolv.conf’


Hope it helps!

Enroll with Linux training online and learn in detail about Linux.

Thanks.

answered Apr 1, 2019 by Rohit
0 votes
use ping google.com

dont add www or https
answered Nov 28, 2020 by CISUR101

Related Questions In Linux Administration

0 votes
1 answer

Error saying "Failed to start httpd.service: Unit httpd.service not found."

Execute the following steps or make sure ...READ MORE

answered May 14, 2019 in Linux Administration by Kiara
38,074 views
0 votes
1 answer

127.0.0.1: Could not Determine the server's fully qualified domain name

If you don't have httpd.conf in folder /etc/apache2, you should ...READ MORE

answered Jun 12, 2019 in Linux Administration by Shubham
• 13,490 points
2,067 views
0 votes
2 answers

Job for httpd.service failed because the control process exited with error code.

Hi guys I was facing same problem as ...READ MORE

answered Nov 21, 2020 in Linux Administration by anonymous
• 140 points
45,690 views
0 votes
1 answer
0 votes
0 answers
0 votes
1 answer

Spark Kill Running Application

you can copy the application id from ...READ MORE

answered Apr 25, 2018 in Apache Spark by kurt_cobain
• 9,350 points
1,810 views
+1 vote
1 answer

Unable to access Jenkins. I newly installed Jenkins but for some reason I cannot access it.

Try changing the port, Change JENKINS_AJP_PORT="xyz" to JENKINS_AJP_PORT="abc" If changing the ...READ MORE

answered Jul 4, 2018 in Jenkins by Sophie may
• 10,620 points
8,345 views
0 votes
1 answer

Not able to access /etc/sudoers.d/python file

I think your system is not allowing ...READ MORE

answered Feb 6, 2019 in Linux Administration by Lohit
2,168 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP