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 am in the process of setting up a web app that will serve a lot of domains. My customers will register a domain and forward it to the web app server and then use the web app through that domain.

Until now I was planning to tell them to just change the A record to point to my server but then I figured that would probably become a problem if I wanna change servers or IP addresses... a lot of domains might have to be changed.

So I looked a bit into managed DNS but I think it actually does too much for what I want. As I understand it, my customers would change the name servers of their domains and I would do all the configuration through the managed DNS provider.

My concern is that my customers couldn't set up for example MX records on their domains anymore, they would have to go through me. What I really want is just an IP address which never changes and which my customers could set as the A record and which I could forward to my app server's IP address. If the latter changed, my customers wouldn't have to change anything, I could just update the "forwarding".

Is there anything like that?

EDIT

As Shane Madden and joeqwerty pointed out, I could use CNAME records, i.e. tell my customers to point their domains to my domain. I actually thought about that before but what turns me off is that my customers would have to use "www.domain.com" since setting a CNAME for "domain.com" is not possible. I consider "www." a relict of the past and don't want to force anyone to use it.

EDIT 2

Amazon EC2 seems to have something like that: http://aws.amazon.com/ec2/ (search for "Elastic IP Addresses") You get an IP address that you can dynamically assign to any EC2 instance. Isn't there something similar, an IP address that can dynamically be assigned to another IP address and just forwards all requests?

share|improve this question
1  
"www" is not a relic of the past. In fact, your problem is exactly why it should be used. Using different names for different services is what allows you to decouple them. –  Mark Wagner Jul 27 '11 at 16:21
add comment

2 Answers

Use CNAME records.

share|improve this answer
    
Arghh. You beat me to the punch... –  joeqwerty Jul 26 '11 at 18:54
    
@joeqwerty Haha, just barely ;) –  Shane Madden Jul 26 '11 at 18:55
    
Well played, Mr. Madden :) –  joeqwerty Jul 26 '11 at 18:56
1  
Thanks for your input. I don't like using CNAMEs because they force you to use a subdomain like "www". I added that to my original question. –  Manuel Meurer Jul 27 '11 at 14:59
add comment

Why not have them create a CNAME record that points to your A record?

share|improve this answer
    
How would that help me? If I changed the server and thereby the A record, all my customers would have to change their CNAME records, which is exactly what I want to avoid... –  Manuel Meurer Jul 27 '11 at 14:57
    
The A record can be whatever you need it to be, such as "www" and doesn't need to change when you change the server. If you move to a new server you just need to change the A record to reflect the new ip address and that's that, there's no need to change the "name" of the A record or to change the CNAME records at all. The only case where the CNAME records would need to be changed is if you change the name of your "service", such as changing it from "www" to "www1" or some such thing and you change the "name" of the A record. –  joeqwerty Jul 29 '11 at 14:17
add comment

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.