Hi, does anyone have any idea on how to access server after changing ports?.. Now I can’t login at all… The entire server is down. The only way I can login is with the Access feature in Digital Ocean. I had changed Port 22 to something else and the server stopped working. I’ve since put it back to 22 and no luck… TY
and reboot. The fact that your server is accessible from your host’s terminal but completely unresponsive to the rest of the world suggests at least the possibility of a firewall-related issue, so disable it and try accessing it again.
where “domain.tld” is the server’s hostname’s domain (not the entire hostname), and x.x.x.x and y.y.y.y are upstream nameserver IP’s. They can be any DNS servers that accept connections from the public. Lots of people use Google’s (8.8.8.8 and 8.8.4.4). The 127.0.0.1, of course, is localhost, so the server can query itself.
The question of why it’s empty is half of the puzzle. The other half is why Virtualmin didn’t throw the usual error you get when BIND is enabled and the loopback line is missing. Do you have BIND enabled?
That might cause it not to work, but I don’t think it would cause /etc/resolv.conf to be empty. I believe Network Manager builds that file on boot (if you let it).