LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 06: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, 12:31 PM   #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, 09: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:21 PM
BIND/DNS: Some subdomains resolve, some don't natetheros Linux - Networking 0 04-22-2005 07:36 PM
Subdomains, Router, BIND? kevinmarsh Linux - Networking 5 06-24-2004 05:11 PM
Subdomains tommytomato Linux - Newbie 5 02-04-2004 10:48 AM
Subdomains papaj Linux - General 7 04-26-2003 05:19 PM

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

All times are GMT -5. The time now is 04:13 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration