Solved

wildcard record in BIND DNS Server

Posted on 2004-04-24
10
439 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
 
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now