I was working with my droplet (via ssh) and suddenly it disconnected so I went to the digital ocean control panel and did a hard reset. It restarted but it can't be reached from outside (ping, ssh) and it can not reach internet from inside. I will really appreciate any help since is my production server and can not just destroy the droplet. Screenshots of the terminal info
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 188.8.131.52#53(184.108.40.206) in 1 ms
The last line (in my paste, as it is longer)
;; Received 525 bytes from 220.127.116.11#53(18.104.22.168) 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
sudo nano /etc/resolv.conf add
nameserver 22.214.171.124 nameserver 126.96.36.199
Try to ping google again
Hopefully that helps.