Solved

wildcard record in BIND DNS Server

Posted on 2004-04-24
10
446 Views
Last Modified: 2010-03-18
I wish to have *.domain.com point to a single IP address without having to specify each, how do I do this?

Thanks!!

Paul.
0
Comment
Question by:H4Inf
  • 3
  • 3
  • 3
10 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 10912250
Including:

*     IN   A    1.2.3.4

in the forward resolution zone file for the domain will do the trick. Note that you can mix host records and a wild card in the same zone file like:

chaos      IN  A   10.1.0.1
mail        IN  A   10.1.0.2
www       IN  A   10.1.0.3
*              IN  A   10.1.0.4

Obviously, the PTR record for the wildcarded IP can only point to a single name and this can cause a certain amount of confusion with clients. So wild card A records should only be used with discretion.
0
 

Author Comment

by:H4Inf
ID: 10912312
Fantastic, so simple :) Thanks so much!

Paul.
0
 

Author Comment

by:H4Inf
ID: 10912316
Actually one more question, is it possible to do this:

*.subdomain.domain.com  IN  A  1.2.3.4
*.subdomain2.domain.com IN A 1.2.3.5

?

Cheers,

Paul.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 40

Expert Comment

by:jlevie
ID: 10912345
Well, yes. But the more normal practice is to create separate zone files for domain.com, subdomain.domain.com and subdomain2.domain.com or to use an ORIGIN statement in a single zone file for each subdomain section. In both cases the domain portion is implied by the ORIGIN statement and "*" alone will suffice.
0
 

Author Comment

by:H4Inf
ID: 10912404
Fantastic ;-) Cheers!
0
 

Expert Comment

by:alex-birkey
ID: 11121277
Any way to do this with windows 2000 DNS server?
0
 

Expert Comment

by:alex-birkey
ID: 11121291
(it doesnt seem to work for me) I can ping *.domain.com but no other prefixes resolve to an IP.
0
 

Expert Comment

by:alex-birkey
ID: 11121777
Sorry.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 11121892
No problem...
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
resolv.conf empty ubuntu server 14 3 74
Linux CentOs 6.7 : i can't start service 8 89
Virtual Firewall to Filter DHCP Traffic? 23 82
VPS for routing recomendations 3 66
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question