I recently purchased a VPS from a service. The hostname seems semi randomly generated
It says I have the option to change the hostname but it looks like I can change the entire thing. As far as I understood, the hostname in this case is
while the domain is
if I change the entire thing to
- I assume I need to own the domain
example.comand have it pointing to the VPS server?
- To point a domain to the server, do I change the Nameservers of the domain or do I change the DNS Servers on the VPS? Or both?
Also, is the main advantage simply that I can use the hostname over the IP address to connect to the server?
And if 3 is correct, if no other services use the server (database etc) and I login via ssh using the IP, is changing the server to use your own domain instead of its default domain really even needed?
hostname example.comin command line and it would set the hostname to anything you enter. That being said there are some tools ive found that will have long delays due to a failing host name lookup so it should be resolvable.