|
<- Previous Message | Next Message -> Thread Index [isp-dns] Re: How to create a dns record which only resolves TLD
In BIND9 I know you can user a wildcard. domain.com IN A 1.2.3.4 * IN A 1.2.3.4 But unless you have every user's web site actually going to a single web site, you'll need to script something to set up each virtual web site on your web server. You may as well also script the adding of the host name to the zone file at the same time. ----- Original Message ----- From: "Bhavin Modi" <mbhavin@...> To: <isp-dns@isp-dns.com> Sent: Friday, July 11, 2003 11:24 PM Subject: [isp-dns] Re: How to create a dns record which only resolves TLD > > Actually I have been doing this but I was wondering if i could do this with > something like a wild card character, cuz I have thousands of users and I > cannot go and type there individual records. I heard of record generators, > but users can have any username not always something like user1,user2..... > so I think I cannot use record generators as well. > > All I have to do is > > domain.com -> 1.2.3.4 > www.domain.com -> 1.2.3.4 > usera.domain.com - > 1.2.3.4 > buser.domain.com -> 1.2.3.4 > .... > .... > otheruser.domain.com -> 1.2.3.4 > .... > nosuchuser.domain.com -> 1.2.3.4 > > The only thing is I have thousands of user so i cannot possibly go and have > individual entries typed. > > ~Bhavin. > > > > Yes, this is no different that creating host names such as > "www.domain.com" or > > "mytestsite.domain.com" or similar. They can resolve to the same IP > address or > > different IP addresses, as you wish. > > > > Of course you have to coordinate the DNS setup with your web server so > that it > > recognizes each host header and serves up the appropriate web page for the > host > > name. > > > > > > ----- Original Message ----- > > From: "Bhavin Modi" <mbhavin@...> > > To: <isp-dns@isp-dns.com> > > Sent: Friday, July 11, 2003 7:00 AM > > Subject: [isp-dns] How to create a dns record which only resolves TLD > > > > > > > Hi, > > > > > > Is it possible to create a DNS record which resolves on top level > domain. > > > > > > For e.g I want to give my users access to there webspace with a hostname > > > like username.domain.com so when a user tries to access his/her website > I > > > can show the page by fetching the username information from hostname > > > programmatically but the dns points to the same webserver. > > > > > > user1.domain.com 1.2.3.4 > > > user2.domain.com 1.2.3.4 > > > .... > > > .... > > > userN.domain.com 1.2.3.4
Thread Index |