Solved

wildcard record in BIND DNS Server

Posted on 2004-04-24
10
444 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
Ubuntu server 12.04 creating broadcast on network 6 88
What antennae works with Linux? 7 83
Convert Routes to Linux (CENTOS 7.0) 3 98
centos linux 65 126
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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