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

I need to direct a subdomain to another server. It works fine for subdomain.domain.com but not for www.subdomain.domain.com - is it possible to point the "www" to the server IP as well as I know many users enter a "www" as well

share|improve this question

1 Answer 1

CNAME the www explicitly:

$ORIGIN domain.com.
subdomain IN CNAME destination.com.
www.subdomain IN CNAME destination.com.

Or use a wildcard if you really want anything (www.subdomain.domain.com, blah.subdomain.domain.com, etc.) redirected:

$ORIGIN domain.com.
subdomain IN CNAME destination.com.
*.subdomain IN CNAME destination.com.
share|improve this answer
    
* is pretty useful. I hadn't thought of *.subdomain - kind of handy. –  dunxd Oct 13 '10 at 13:37
    
* can also be quite tricky. See Q 5.9 of the comp.protocols.tcp-ip.domains FAQ faqs.org/faqs/internet/tcp-ip/domains-faq/part2 –  adamo Oct 13 '10 at 14:09

Your Answer

 
discard

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