Domain – Configure VPS to access SSH with subdomain

domaindomain-name-systemnameserversubdomainvps

Well, I just bought a unmanaged VPS with DirectSpace to try the service out.
I'm currently able to access it through the two IP adresses that they gave me, but now I'd like to get access to it through my Domain, which I get with GoDaddy through GoogleApps.

I'd like to be able to do something like

ssh username@server1.mydomain.com

and get access to the shell this way.
Also, since I'm using the GoDaddy Name Servers and they are working good enough, I wouldn't like reassign them to my own host (ns1.mydomain.com, ns2.mydomain.com).

I've read somewhere that it is posible by setting an A Record, but honestly I'm lost.
Finally, I'd like to be able to use the VPS for hosting my own Web Site and also some other Customer Sites (with its own domains), so please, let me know if somebody can give me a clue on this.

Regards.

Best Answer

Check the dashboard provided by GoDaddy (I haven't used GoDaddy DNS service so wouldn't be able to walk you through). There will be an option to add an A record. Over there add an A record for your domain.

IP_ADDRESS A server1

For hosting content of your site and other customers you would need to use virtual hosting in Apache. http://httpd.apache.org/docs/2.0/vhosts/

Once the virtual hosting is configured you can ask your customers to change their A record to your IP.