Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a question about domain A records.

I have a VPS and I want to point my domain to its IP.

Now, do I have to add an entry into the A record for mydomain.com AND www.mydomain.com? Or will simply adding an entry for mydomain.com make the www.mydomain.com work automatically?

share|improve this question

2 Answers 2

up vote 5 down vote accepted

Each of the two entries you mention is individual and distinct. So if you want both to work, you need to add both.

share|improve this answer
It is generally considered a good practice to put the 'www' record as a CNAME, not an A record, assuming it is the same. –  Scrivener Jan 20 '13 at 8:38
i just put it as an A name and it works fine. –  scarhand Jan 20 '13 at 17:51

You may add an A record for your IP and a CNAME record for www. or *. like:

.domain.tld     A      3600 xxx.xxx.xxx.xxx (IP)
www.domain.tld  CNAME  3600 domain.tld


*.domain.tld    CNAME  3600 domain.tld
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.