Question
can't ping any website even google.com "unknown host google.com"
I have:
512MB Ram 20GB SSD Disk Singapore 1 LEMP on Ubuntu 14.04
I have installed LEPM one-click installation.
then I:
- Went through initial server setup
- key-based authentication
- I ran
mysql_secure_installation
- installed a firewall (ufw)
now I wanted to install logentries to monitor my server logs and in the installation I have got an error.
After lots of search I found out that I cannot ping any domain even google.com. It gives me the following error:
ping: unknown host google.com
What is the best solution to solve this because I am going to have this server for years so I don’t want a “spaghetti” solution :-)
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
Update:
in step 4 I have closed all incoming and outgoing ports and just allowed a few incoming:
I think that this is the problem but at the same time I have no clue about ufw I have did How To Setup a Firewall with UFW Example link tutorial.
If the problem is with the closed ports, Please refer me to an article or tutorial that explains what ports (incoming and outgoing) needs to be open.