About the wildcards.

Barry Margolin barmar at bbnplanet.com
Thu Oct 14 14:46:31 UTC 1999


In article <4.1.19991010200314.00b759c0 at 209.132.1.30>,
Ariel Manzur  <punto at anime.com.ar> wrote:
>Is there anything wrong with this, or it just impossible to do it? What I
>want is to map only domains that doesn't exist to localhost, and the rest
>to the real IP.. Is there any way to do this?

In many cases, it should be sufficient to put a wildcard in your own
domain.  When an application looks up "xxx.nonexistentdomain.com", it will
first try using that as a fully-qualified name.  If this fails, it will
then try appending the host's default domain (or each of the domains in its
search list in turn), so it will try to look up
"xxx.nonexistentdomain.com.<yourdomain>".  This will match the wildcard in
your domain, and return the address you specified.

However, you have to be concerned about a common bug in old resolvers,
which do the above in the opposite order.  They first try appending the
default domain, so the wildcard will end up hiding everything.

-- 
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list