Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 472
  • Last Modified:

wildcard record in BIND DNS Server

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
H4Inf
Asked:
H4Inf
  • 3
  • 3
  • 3
1 Solution
 
jlevieCommented:
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
 
H4InfAuthor Commented:
Fantastic, so simple :) Thanks so much!

Paul.
0
 
H4InfAuthor Commented:
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
jlevieCommented:
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
 
H4InfAuthor Commented:
Fantastic ;-) Cheers!
0
 
alex-birkeyCommented:
Any way to do this with windows 2000 DNS server?
0
 
alex-birkeyCommented:
(it doesnt seem to work for me) I can ping *.domain.com but no other prefixes resolve to an IP.
0
 
alex-birkeyCommented:
Sorry.
0
 
jlevieCommented:
No problem...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now