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
2,333 views

1 answer 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’
answered Apr 1, 2019 by Rohit

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 13, 2019 in Linux Administration by Kiara
5,272 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,380 points
393 views
0 votes
1 answer

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

Hi@akhtar, This problem is caused due to SELinux. It ...READ MORE

answered Apr 23 in Linux Administration by MD
• 31,710 points
308 views
0 votes
1 answer
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,310 points
492 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
• 9,940 points
927 views
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
153 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
564 views