A-record vs CNAME which one to use for changing subdomain nameserver?

4

2

I've an unique situation where I need to set-up subdomain which will point to svn.

so I need svn.domain.com to point to - svn server. And domain.com to hostgator shared server.

Should I use CNAME, or A-record?

Does cpanel provide this functionality?

user98645

Posted 2012-05-07T15:18:01.373

Reputation:

You should check this answer http://serverfault.com/a/181981/294494

– Edson Horacio Junior – 2015-08-04T20:15:21.800

Answers

3

cname is an indirection (alias) so it is slower, because it looks up and get an A record, which then looks up your ip. you can even cname a cname.

so for efficiency you want to use a record. however, it is not a cut and dry thing really so you just have to weigh it and see which way to go.

i am not familiar with cpanel so cannot answer that part.

johnshen64

Posted 2012-05-07T15:18:01.373

Reputation: 4 399

0

A CNAME (canonical name) record can only point to an existing A record.

So you would need an A record anyway. The CNAME could be used later to make subversion point to svn for example.

cPanel is (to my understanding) a system management software. So, unless you're hosting your own DNS, or your hosting company provides you with cPanel to administer your DNS, it wouldn't be the right place to make this change.

It is more likely that you'll be able to edit your DNS zone in the web interface of your provider.

Der Hochstapler

Posted 2012-05-07T15:18:01.373

Reputation: 77 228