Solved

wildcard record in BIND DNS Server

Posted on 2004-04-24
10
451 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 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Debian: failing to add netwok bridge for kvm 2 118
centos linux 65 235
Automate the blocking off IP's from a list file in Ubuntu 9 85
grep command usage 10 34
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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