0

I'm coding an application the lets people attach their custom domains to it without my manual intervention or messing with httpd.conf.

So I need a method very similar to the method described by Google at the following URL: http://www.google.com/support/blogger/bin/answer.py?hl=en&answer=55373... Except I'm not Google, so I may switch hosting provider anytime and the IPs will be completely changed.

That will cause a HUGE problem since it means I have to get everyone to update their domain CNAME settings which is impossible without severe downtime.

So how can I have the domains pointed to something fixed like ns1/ns2.mydomain.com?

Your help would be greatly appreciated.

1 Answer 1

2

A CNAME record is just a pointer to another record. So you setup your own record, like hosted.example.com; then tell your customers to point their CNAME at it. Tell them not to use A records because it will break eventually.

Also, when your changing IPs, know that it may take a long time for DNS to update properly. You should plan on at least 1 whole week; though a more conservative number would be 1 month.

4
  • Why Google uses IP addresses then instead of hosted.example.com?
    – emurad
    Mar 15, 2011 at 13:59
  • Google owns those IPs. They get to decide exactly how they're used. You don't own any IPS, at best you can lease some, but the owner can still yank them anytime they want.
    – Chris S
    Mar 15, 2011 at 15:37
  • Thanks it worked. One last question, why Google asks to create 4 CNAME records instead of only one?
    – emurad
    Mar 16, 2011 at 8:28
  • They ask you to create 4 for DNS RR load balancing. It's not a very effective form of load balancing on it's own, but I strongly suspect that Google is doing something unique on the back end.
    – Chris S
    Mar 16, 2011 at 12:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .