I’m quite experienced managing Linux on standalone machines and in local networks.
Recently I’ve hired a VPS server running Linux and also a domain name and I have a few questions regarding the
Right now my domain name (e.g. foobar.com) is pointed to the IP address of my VPS (e.g. 220.127.116.11). Additionally, my VPS has an assigned host name (e.g. virt1000) with the hosting company domain name (hostingcompany.com). Therefore, there are two ways I can SSH to my VPS:
$ ssh -l user virt1000.hostingcompany.com $ ssh -l user foobar.com
I have changed the domain name to be
foobar.com from the command line and the host name to another one (e.g. mynicehost). Should I add
/etc/hosts/ and also set up the subdomain
mynicehost.foobar.com in the A records from my domain?
I’m asking for best practices, really. As it stands, everything kind of works (the domain takes you to the right web site, etc.).
Thanks in advance.