0

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.

Thanks.

codeassembly
  • 103
  • 3

1 Answers1

4

You are looking for wildcard DNS records.

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

If instead you are looking for resolution of names like *.foo.com, *.bar.com, *.*.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.

Allen
  • 1,315
  • 7
  • 12
  • 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