Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wildcard DNS script

Status
Not open for further replies.

MichealC4

Programmer
Jun 26, 2003
457
I've seen them before, but the place I saw it appears to have removed the listing, probably because the author didn't maintain it. However, searches have turned up little. I'm thinking about doing wildcard DNS, but of course I need a script to handle it. Anybody seen these? I could write one myself I guess, but I don't particularly have the time to with everything else I need to do.

----------------------------
"Will work for bandwidth" - Thinkgeek T-shirt
 
You don't need a script to do DNS wildcards and they have nothing to do with PHP. What would this script do?
 
For the DNS wildcard itself, no. I know how to do wildcard DNS. However, what it supposed to handle the requests?

----------------------------
"Will work for bandwidth" - Thinkgeek T-shirt
 
Okay. For example:

I'll have a wildcard DNS record in my zone. Then when one of my users requests it, the script will check to see if they have an account and it is authorized to to use the subdomain.

ie: username.myname.com But if username doesn't exist, what will happen? What will happen with any requests in wildcard DNS? It'll just go to my main site.

username1.myname.com
usernameasdasdfasdf.myname.com
asdflkasjdfasdfasdfasdfasdf.myname.com

Those will all point to myname.com unless I do something with them. So what do I need to do?

----------------------------
"Will work for bandwidth" - Thinkgeek T-shirt
 
That's the opposite of wildcards. What you're asking about would have to be handled in your web server configuration. You may be able to write a script that looks at the URI and switches based on the named requested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top