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.

Is it possible to link "mydomain.com" to "app.iriscouch.com" using a CNAME record?

My service provider app says a CNAME record must have a subdomain.

And A record must link to an IP.

share|improve this question

migrated from stackoverflow.com Jul 10 '11 at 18:01

This question came from our site for professional and enthusiast programmers.

    
If app.iriscouch.com has a unique IP (not shared) that you can create an A record pointing from mydomain.com to that IP. Otherwise, not possible using DNS. –  Drazisil Jul 10 '11 at 12:37

3 Answers 3

I do not believe this is possible, per - Is Root domain CNAME to other domain allowed by DNS RFC?

Either way it is inadvisable. Instead, consider just using a sub-domain for the CNAME and then force rewrite (something elegant and ubiquitous like mod_rewrite) attempts to reach the base domain to that subdomain, either based on a criteria or in all scenarios.

Also, consider the fact that most DNS interfaces would disallow such a thing even if it were 'technically' possible. I know that the DNS interface at the hosting company I work for would prevent this action.

share|improve this answer
    
+1 for mod_rewrite –  Abdullah Jibaly Jul 10 '11 at 5:04

Yeah I think they are correct, you'll most likely have to do a redirect from mydomain.com. As you mentioned a CNAME record cannot exist on the main domain.

Some hosted DNS solutions can do this for you as well, I've used https://web.easydns.com before.

share|improve this answer

It would be incorrect to create a CNAME from your zone to a subzone. By definition a CNAME cannot have another record at the same apex as any other record (this is modified by DNSSEC to allow RRSIG, NSEC(3), etc). For example at the zone cut (into your zone example.com) if you would create a CNAME to app.example.com there is no zone delegation glue there for resolvers to state the authority of the nameserver to example.com. So you basically break yourself.

What I would suggest is since your not asking for a DNAME configuration that it's likely your just trying to configure your A record to app.example.com. So why not set the IP of app.example.com at example.com and CNAME app.example.com back to example.com?

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.