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 in Linux Administration by Yogi
85 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 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 in Linux Administration by Kiara
663 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 in Linux Administration by Shubham
• 13,300 points
151 views
+1 vote
1 answer

Not able to install npm on Ubuntu

Try installing npm using aptitude: sudo apt install aptitude sudo ...READ MORE

answered Nov 28, 2018 in Linux Administration by Omkar
• 67,660 points
1,922 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,260 points
199 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,870 points
372 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
92 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 in Linux Administration by Lohit
195 views
0 votes
1 answer

Error installing npm

Npm depends on NodeJS to run/get installed. ...READ MORE

answered Feb 8 in Linux Administration by Omkar
• 67,660 points
64 views