Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Dec 11, 2010 5:27 pm 
Offline
Junior Member

Joined: Wed Nov 03, 2010 4:55 pm
Posts: 28
Location: 55
Hi there,

I'm trying to setup a little service where people can register a subdomain and use it for their server by setting the corresponding nameservers of this server.

I'm wondering, how can I programatically create these subdomains with their own nameservers in an efficient way? Such that it'd be possible to have eg. a million of these subdomains?

Any advice is appreciated.

Thanks.

- Tom


Top
   
 Post subject:
PostPosted: Sat Dec 11, 2010 10:56 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
For a good look at how DNS works and some of the tricks you can (and cannot) use, especially in large-scale situations like this, you'll probably want http://oreilly.com/catalog/9780596100575 at the ready.

I haven't personally used it in awhile, but take a look at PowerDNS. It has been around awhile, and supports a number of databases on the back end, SQL and otherwise.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Sun Dec 12, 2010 2:06 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
hoopycat if you ask people to not redact their host name when posting, you are asking them to not post it. Is that what you intended?

tr.v., -dact·ed, -dact·ing, -dacts.

1. To draw up or frame (a proclamation, for example).
2. To make ready for publication; edit or revise.


Top
   
 Post subject:
PostPosted: Sun Dec 12, 2010 3:28 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Merriam-Webster says:
Definition of REDACT
transitive verb
  1. to put in writing : frame
  2. to select or adapt (as by obscuring or removing sensitive information) for publication or release; broadly : edit
  3. to obscure or remove (text) from a document prior to publication or release

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 12:21 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
Peter's 3rd definition is the one I'm using. Get a better dictionary :-)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 12:56 pm 
Offline
Junior Member

Joined: Wed Nov 03, 2010 4:55 pm
Posts: 28
Location: 55
hoopycat wrote:
For a good look at how DNS works and some of the tricks you can (and cannot) use, especially in large-scale situations like this, you'll probably want http://oreilly.com/catalog/9780596100575 at the ready.

I haven't personally used it in awhile, but take a look at PowerDNS. It has been around awhile, and supports a number of databases on the back end, SQL and otherwise.


Hi HoopyCat,

Thanks for your literature suggestion.

Before I order this book, I would like to know if managing DNS like this is possible with Linode (in an efficient enough way to create a whole lot of subdomains with their own nameservers).

- Tom


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 2:21 pm 
Offline
Senior Member
User avatar

Joined: Fri Dec 11, 2009 7:09 pm
Posts: 168
I would bet you would have to run your own name server to do what you want, rather than using the Linode ones.
It certainly should be possible, though.

_________________
--
Chris Bryant


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 2:56 pm 
Offline
Junior Member

Joined: Wed Nov 03, 2010 4:55 pm
Posts: 28
Location: 55
bryantrv wrote:
I would bet you would have to run your own name server to do what you want, rather than using the Linode ones.
It certainly should be possible, though.


Apologies if this makes no sense, but can I run my own dns server on a linode server?

Thanks.


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 3:26 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
tommedema wrote:
bryantrv wrote:
I would bet you would have to run your own name server to do what you want, rather than using the Linode ones.
It certainly should be possible, though.


Apologies if this makes no sense, but can I run my own dns server on a linode server?

Thanks.


A linode can do anything that any other server can do, so yes, you can.

Are you sure you need to, though? I'm not entirely clear on what you're trying to do. You want to create subdomains and use *those* as name servers for customer domains? Is there a reason you can't use Linode's name servers?

Or do you just want to create subdomains for the websites themselves, and want to automatically create the subdomains for customers to access their webpages? You can do that with Linode's name servers through the API, I believe.


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 3:32 pm 
Offline
Junior Member

Joined: Wed Nov 03, 2010 4:55 pm
Posts: 28
Location: 55
Guspaz wrote:
tommedema wrote:
bryantrv wrote:
I would bet you would have to run your own name server to do what you want, rather than using the Linode ones.
It certainly should be possible, though.


Apologies if this makes no sense, but can I run my own dns server on a linode server?

Thanks.


A linode can do anything that any other server can do, so yes, you can.

Are you sure you need to, though? I'm not entirely clear on what you're trying to do. You want to create subdomains and use *those* as name servers for customer domains? Is there a reason you can't use Linode's name servers?

Or do you just want to create subdomains for the websites themselves, and want to automatically create the subdomains for customers to access their webpages? You can do that with Linode's name servers through the API, I believe.


Hi again,

I'm not trying to do either of those.

Basically, I want to allow other people to create a subdomain and then setup their own nameservers (aka the nameservers of their servers, not mine) for the subdomains that they created.

Thus, a subdomain would function like a top level domain, where the registrant can setup his nameservers so that the domain will lead to the corresponding servers.


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 5:28 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
But... You can't have a name server for a subdomain...

You just want your clients to be able to create a subdomain under your domain, and point it to their own IP? That's trivial, should be able to do it with the API. You just need to add A-record CRUD support to your application for linode's DNS services.


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 5:52 pm 
Offline
Junior Member

Joined: Wed Nov 03, 2010 4:55 pm
Posts: 28
Location: 55
Guspaz wrote:
But... You can't have a name server for a subdomain...

You just want your clients to be able to create a subdomain under your domain, and point it to their own IP? That's trivial, should be able to do it with the API. You just need to add A-record CRUD support to your application for linode's DNS services.


I realize that.

However, do you really think the linode DNS API is meant for bulk records? I want this to be setup correctly, so that it can (hypothetically) expand to hundred of thousands of subdomains with their own IPs.


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 5:58 pm 
Offline
Senior Member

Joined: Fri Dec 07, 2007 1:37 am
Posts: 385
Location: NC, USA
Guspaz wrote:
But... You can't have a name server for a subdomain...

Ummm.... why not?

Not that it is necessarily a good idea, but AFAIK it can be done.


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 6:07 pm 
Offline
Senior Member
User avatar

Joined: Fri Dec 11, 2009 7:09 pm
Posts: 168
A side note- I'm not sure you could buy hundreds of thousand of IP addresses, and I'm near certain you couldn't in any single Linode data center.
I really cannot thing of a legit reason to need that many.

_________________
--

Chris Bryant


Top
   
 Post subject:
PostPosted: Mon Dec 13, 2010 6:11 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Stever wrote:
Guspaz wrote:
But... You can't have a name server for a subdomain...

Ummm.... why not?

Not that it is necessarily a good idea, but AFAIK it can be done.


Hmm, didn't realize you can do that. But it's strictly a redirect; the root server is still going to point to your name server, and only when the client queries your name server will it find out that it has to query yet another name server to get info on the subdomain.

tommedema wrote:
I realize that.

However, do you really think the linode DNS API is meant for bulk records? I want this to be setup correctly, so that it can (hypothetically) expand to hundred of thousands of subdomains with their own IPs.


Well, since Linode won't give you hundreds of thousands of IPs, they might not be happy that you're using their DNS servers to host hundreds of thousands of non-linode IPs...

You should ask them directly.

EDIT: More to the point, I'm not sure anybody is going to give you hundreds of thousands of IPs, not with IPv4 exhaustion 71 days away.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group