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.

What is the best way in a DNS record to make a subdomain point to another subdomain on another site.

E.G.: sub.domain_my_site.com --> sub.domain_other_site.com

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The DNS way of doing that is called a 'CNAME' record.

Think of a DNS CNAME as an alias for something else. In your example, a web browser would show http://sub.domain_my_site.com in the address bar. Behind the scenes, it would continue to resolve sub.domain_other_site.com until it gets an IP address; and then it would connect to that IP.

CNAMEs are used all over the place. For example the well known www.google.com is a CNAME for www.l.google.com., which presumably is a geo-distributed group of load balancers.

share|improve this answer

Your Answer

 
discard

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.