This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.
Subject: [OT] DNS question (slightly mod_perl related...) From: martin langhoff <martin@scim.net> Date: Thu, 31 Aug 2000 12:10:53 -0300 the mod_perl related background: I was recently asked if one of the domains we were hosting could have its users folders mapped in the domain name. Something like folder.domain.com, instead of domain.com/folder . My silly mind tumbled around, mumbling at which apache request I was going to catch the domain and turn it into a subrequest, and I mumbled 'yes, of course'. the catch: As you may have imagined, it maybe trivial to do in Apache (I haven't done it yet, but I hope it is). What is not trivial is to trick BIND into saying it knows as many domains as folders I want. Or is it? the question: Is it possible to tell BIND to catch *.domain.com and answer the same ip? === Subject: Re: [OT] DNS question (slightly mod_perl related...) From: Matt Sergeant <matt@sergeant.org> Date: Thu, 31 Aug 2000 16:21:05 +0100 (BST) On Thu, 31 Aug 2000, martin langhoff wrote: > > the mod_perl related background: > > I was recently asked if one of the domains we were hosting could have > its users folders mapped in the domain name. Something like > folder.domain.com, instead of domain.com/folder . My silly mind tumbled > around, mumbling at which apache request I was going to catch the domain > and turn it into a subrequest, and I mumbled 'yes, of course'. > > the catch: > > As you may have imagined, it maybe trivial to do in Apache (I haven't > done it yet, but I hope it is). What is not trivial is to trick BIND > into saying it knows as many domains as folders I want. Or is it? > > the question: > > Is it possible to tell BIND to catch *.domain.com and answer the same > ip? Yes, I believe the entry is simply *.domain.com! Then use mod_rewrite to map the right folder. === Subject: Re: [OT] DNS question (slightly mod_perl related...) From: David Hodgkinson <daveh@hodgkinson.org> Date: 31 Aug 2000 16:26:36 +0100 martin langhoff <martin@scim.net> writes: > Is it possible to tell BIND to catch *.domain.com and answer the same > ip? Plan A: Generate the zone files from the database. Plan B: Use the beta of Bind 9 which, I believe, has database bindings promised. I've hacked around with something like plan A recently. Got to the first 90% stage and lost interest ;-) === Subject: Re: [OT] DNS question (slightly mod_perl related...) From: Jim Winstead <jimw@trainedmonkey.com> Date: Thu, 31 Aug 2000 11:36:13 -0400 On Aug 31, David Hodgkinson wrote: > martin langhoff <martin@scim.net> writes: > > > Is it possible to tell BIND to catch *.domain.com and answer the same > > ip? > > Plan A: Generate the zone files from the database. > > Plan B: Use the beta of Bind 9 which, I believe, has database bindings > promised. plan c: use a wildcard record and move on to real problems. :) === Subject: Re: [OT] DNS question (slightly mod_perl related...) From: David Hodgkinson <daveh@hodgkinson.org> Date: 31 Aug 2000 16:43:45 +0100 Jim Winstead <jimw@trainedmonkey.com> writes: > On Aug 31, David Hodgkinson wrote: > > martin langhoff <martin@scim.net> writes: > > > > > Is it possible to tell BIND to catch *.domain.com and answer the same > > > ip? > > > > Plan A: Generate the zone files from the database. > > > > Plan B: Use the beta of Bind 9 which, I believe, has database bindings > > promised. > > plan c: use a wildcard record and move on to real problems. :) That too :-) ===