Hi there,
Note: these 4 paragraphs explain my situation, you could skip them if you wish.
I'll first introduce my situation. I'm running a free service where people can register subdomains. At the moment, these aren't actual subdomains as every "subdomain" is simply a (wildcard) redirect to the top domain, which then looks up the subdomain entered and loads the content corresponding to the entered subdomain (with a database). The subdomain than fakes to be a website by showing a full size iframe which cloaks a URL entered by the person who registered the subdomain.
Of course, this kind of "domain" is quite unprofessional, which explains why I have gotten a whole lot of requests to allow users to actually set their server's nameservers for a subdomain. This way, the free subdomain would function like a normal domain.
I must admit that my current knowledge about DNS is nothing special, but I would like to learn. Also, since my service is free, there is no financial gain which is another reason why I have to implement this myself.
Note: these paragraphs explain my actual needs
In order to facilitate such service, I have decided to get myself some linode (a cloud service) servers. While they do allow a DNS API, this obviousely is not meant to be used for thousands of subdomains.
After asking on the linode forums, I have been told that
1) I need to create my own DNS server (I want to use Node.js for this)
2) I need to be able to create these DNS settings in a database, rather than modifying some files all the time (this makes sense since I want to be able to allow a lot of subdomains)
Now, my questions are:
1) What should I read to understand the concept of the system that I need to create for this service?
2) How can I implement such DNS system with node.js?
3) Have there been any similar attempts in the past?
4) Is anyone else interested in such project?
To conclude, the final objective is to create a service where users can create a subdomain and make this subdomain point to their own nameservers, so that they function like top level domains.
Thanks in advance.
Best regards,
Tom