I have: 512MB Ram 20GB SSD Disk Singapore 1 LEMP on Ubuntu 14.04
I have installed LEPM one-click installation. then I:
mysql_secure_installationnow 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 :-)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Can you ping the default gateway ?
I had the same connectivity issue, due to kernel 3.13.0-24, but after upgrading to 3.13.0-32 I was able to ping the default gateway, so my connectivity issues were gone.
Hi,
If you can’t resolve google.com domain, can you show us the content of your /etc/resolv.conf file ?
It is possible that you don’t adress your queries to the proper DNS server. Your /etc/resolv.conf file should contain at least 8.8.8.8 and 8.8.4.4 as DNS servers to have DNS resolution.
Hope this helps !
– rustx
Not a ufw user I prefer iptables. So you have to enter icmp rules to enable ping, from a quick google search I found that you have to enable icmp rules in /etc/ufw/before.rules if there are any rules. If not add the following:
-A ufw-before-input -p icmp --icmp-type destination-unreachable -j ACCEPT -A ufw-before-input -p icmp --icmp-type source-quench -j ACCEPT -A ufw-before-input -p icmp --icmp-type time-exceeded -j ACCEPT -A ufw-before-input -p icmp --icmp-type parameter-problem -j ACCEPT -A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.