It is possible there's a problem with the /etc/resolv.conf
file (Probably empty or wrongly configured) since ping does not work, run dig google.com A +trace
to trace the DNS paths.
Typically you should have output like
; <<>> DiG 9.10.3-P4-Ubuntu <<>> google.com A +trace
;; global options: +cmd
. 42083 IN NS a.root-servers.net.
. 42083 IN NS b.root-servers.net.
. 42083 IN NS c.root-servers.net.
. 42083 IN NS d.root-servers.net.
. 42083 IN NS e.root-servers.net.
. 42083 IN NS f.root-servers.net.
. 42083 IN NS g.root-servers.net.
. 42083 IN NS h.root-servers.net.
. 42083 IN NS i.root-servers.net.
. 42083 IN NS j.root-servers.net.
. 42083 IN NS k.root-servers.net.
. 42083 IN NS l.root-servers.net.
. 42083 IN NS m.root-servers.net.
. 42083 IN RRSIG NS 8 0 518400 20190212170000 20190130160000 16749 . eMPtAtRg5I5Rs5FG0dWDRxn/8/wDMavt/zz1YiIkLBeq6RaY1bfuWsmT Bo0zNzx1/hW4nh/aJpmgBOlTlOs9ZU0lAOJa2rHBnKJjNiu0dMJCkWDR uTxyDjG5Xi9orXw2yy0sa38gZkkZoZo/GGtZZRSXFXFFVg+S8iOjm6ZV AoYOLsiP3VranLSONnIadzdMVAw4WdeVYWvUdsXxOLtWzETR4bmOzdYK u9IXjBrwYEe7HQCyb0rRITkcpfULaFjD+u+4IG7Q2v5GnucKWbXeykLS PEOSUhuWL9D4pPpAR3KhC7qOqLQeGRkzaFPQgST2icfepNtpC863QJR8 Kl+FqA==
;; Received 525 bytes from 8.8.8.8#53(8.8.8.8) in 1 ms
The last line (in my paste, as it is longer) ;; Received 525 bytes from 8.8.8.8#53(8.8.8.8) in 1 ms
shows a DNS server from which 525 bytes
was received in 1ms if you do see an out similar to this then you would need to edit your /etc/resolv.conf
... sudo nano /etc/resolv.conf
add
nameserver 8.8.8.8
nameserver 8.8.4.4
Try to ping google again
REF : Digital Ocean unable to ping external websites
Hopefully that helps.
Since it's your production droplet then you have a backup right? Have you contacted Digital Ocean to verify the problem is the droplet not their hardware? – Ramhound – 2017-07-29T15:18:03.357
I was downloading my db and in that moment the connection broke up. I Will contact them – Marco Santana – 2017-07-29T16:34:45.093
when I restart the server it only has lo interface and only after service networking restart the other appear but it still doesn't work – Marco Santana – 2017-07-29T19:31:41.267