LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2003, 05:04 AM   #1
jnsc
LQ Newbie
 
Registered: Apr 2002
Posts: 24

Rep: Reputation: 15
Bind and subdomains


Hello,
I have a lot of subdomains to create. like aaa.mydomain.com aab.mydomain.com. It is too much work to create them all, does bind support a kind of "global" that alows you to type anything you want as subdomain like aaa123855sss.mydomain.com.

Thanks
 
Old 02-28-2003, 11:31 AM   #2
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Rep: Reputation: 15
If you mean you want [anythingatall].mydomain.com to point to the same place, you can use wildcards in the host field of a record, such as:

* IN CNAME mydomain.com.

Note however that this wildcard will take precedence and any other host entries for mydomain.com will not necessarily point to where you want them, for example:

...
@ IN A 192.168.1.100
test IN A 192.168.1.101
* IN CNAME mydomain.com

test.mydomain.com and blah.mydomain.com will resolve to 192.168.1.100.

This setup plus a bit of cgi-scripting is how websites like http://jnsc.isgay.com work. Just out of curiosity, why do you need to create so many subdomains (if in fact, the wildcard thing is what you wanted).
 
Old 03-01-2003, 08:43 AM   #3
jnsc
LQ Newbie
 
Registered: Apr 2002
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks, I'll try your solution.

I want do make a search engine which uses the subdomain as query. like if someone type hapy.mydomain.com the search engine will say are you looking for happy.mydomain.com.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND 9 and in-addr.arpa subdomains carsten.engel Linux - Enterprise 6 07-18-2005 03:21 PM
BIND/DNS: Some subdomains resolve, some don't natetheros Linux - Networking 0 04-22-2005 06:36 PM
Subdomains, Router, BIND? kevinmarsh Linux - Networking 5 06-24-2004 04:11 PM
Subdomains tommytomato Linux - Newbie 5 02-04-2004 09:48 AM
Subdomains papaj Linux - General 7 04-26-2003 04:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration