Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to offer a service that allows people to use their own domain. I want my dns server to return my server ip for any domain query so I don't have to setup every client's domain. How can I achieve this? What should the client do and what my dns server configuration should be? lets say bind, but I will probably write something custom with evldns.


share|improve this question
up vote 4 down vote accepted

You are looking for wildcard DNS records.

See this question which is among these results. These will explain how to get names likes,, * to resolve to one IP address.

If instead you are looking for resolution of names like *, *, *.*.com to the same address then you will have to setup each individually with your registrar and then on your nameserver as well.

I suppose you could cobble up an evldns server that answers every external query with the same A record. At the moment I can't think of a reason why your server should not do so, but there has to be one.

share|improve this answer
Is it enough to have the dns server just answer to A records with the same ip and clients setting up their domain to point to my dns server or I have to implement additional features for the dns server? I'm trying this right now and it dosen't seem to work and I don't know what I'm missing. – codeassembly Dec 26 '10 at 14:57
It just took some time to propagate, it works! :) I have set up an elvds that just answers A records with my server ip and it works – codeassembly Dec 26 '10 at 14:59
What happens when your internal DNS clients lookup an external address? – Allen Dec 26 '10 at 15:27
Fortunately my application will not need dns lookups, if it will in the future I will use ISP dns servers. – codeassembly Dec 26 '10 at 17:44

Your Answer


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.