Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

wildcard record in BIND DNS Server

Posted on 2004-04-24
10
Medium Priority
?
460 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 3
10 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 2000 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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

650 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