when to use an a name vs. a c name?

When do you use an A name vs. a C name?

For instance, I want to forward webmail.domain.com to a different ip than domain.com. Do I create a new A Name record to do this or a new C Name record in DNS to accomplish this?

Thanks.
deluxeriderAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

farzanjCommented:
You need to create A record and MX record for this (mail exchange).
0
farzanjCommented:
For details about CNAME, use the following
http://en.wikipedia.org/wiki/CNAME_record
0
megadeth199Commented:
You will need to create a A record.

C name are use to points to a Domain name and A records points to an IP address

Exemple :
foo.example.com.        CNAME  bar.example.com.
bar.example.com.        A      192.0.2.23

Open in new window


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mchkorgCommented:
I think your question is how to decide when I should use A / CNAME

This is just a question for yourself: how do you want to manage all your DNS entries? Do you change your servers often? (I mean, move to a new one with other IP)
It depends on what kind of service you host. Are they all on the same server? are you planning to separate these services on several servers? DNS-load-balance something on several servers ? and so on...

An example:
You have a server hosting many services (web, mail, ftp and so on), its IP is X.Y.Z.T
Usually, your create an A record for mydom.com pointing to X.Y.Z.T
And aliases for its different names : www => CNAME mydom.com ; ftp => CNAME mydom.com ; webmail => CNAME mydom.com and so on
Now imagine your hosting email services on it
I'd suggest you create an A record for mail.mydom.com, with the same IP as mydom.com
And CNAMEs for imap.mydom.com, pop.mydom.com, smtp.mydom.com and webmail.mydom.com pointing to mail.mydom.com
This way, you sort of "link" your mail-related DNS entries to the only server(=IP) hosting smtp+pop+imap+webmail. If your move these services to a new server, you just change the IP once, for mail.mydom.com.

=> The idea here is to declare A records and CNAME to this "A" for a consistent group of names/services.
Anyway, if you have a few records to manage, you just don't care :), provided DNS-propagation latency is not a major issue

I hope I'm clear enough
Regards
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DNS

From novice to tech pro — start learning today.