views:

65

answers:

2

Hey guys, so I recently purchased a cheap vps for me to play around with, to get used to working with linux, command line, and servers.

I also have a shared webhost that I host my site on.

For now, I want to keep my site on my shared webhost until I fully find out how to work with my vps, then I'll slowly start moving projects, ect over.

So I have my domain, (I.E domain.com) connected or whatever to my shared host. But I want to like, assign a subdomain to my vps, is this possible? Like vps.domain.com?

For example, I was setting up webmin, can I set up my domain for when I go to vps.domain.com:10000, it actually goes to the site, (and I don't mean redirection), as if I were going to it's ip http://00.000.000.000:1000?

How can I do this? I bought my domain from namecheap, and my shared webhost is using cpanel, I can provide more information if you guys need.

+2  A: 

You just need to create an A resource record for vps.example.com. Usually you can do that in the configuration panel of the provider you've registered example.com with.

joschi
Seems like my cpanel doesn't have that option. Only options I see for subdomain is redirection.
Rickmasta
That's a DNS setting. If you don't manage the name servers for your `example.com` domain you'll have to request the creation of the A resource record with the registrar of this domain.
joschi
+1  A: 

Hello Rick,

When i want to redirect a subdomain to somewhere else, i'm creating a "A record" in the zone file of the DNS.

"A record" are most commonly used to map hostnames to an IP address of the host.

In your case the "A record" will be something like "vpn" => 255.255.255.255

racar
Seems like my cpanel doesn't have that option. Only options I see for subdomain is redirection.
Rickmasta
Looks like you can't change/add "a record" in cpanel without contact them directly. Sorry
racar