About the wildcards.

Ariel Manzur punto at anime.com.ar
Sun Oct 10 23:20:59 UTC 1999


Hi..

I want my BIND to map all non-existent domains a to an IP (say 127.0.0.1).
I asked this before here, and someone told me to use wildcards, so I did this:

on named.comf:

zone "*" {type master; file "all.domains";};

On the file (all.domains):

*. IN A 127.0.0.1

So, I get this:

$ nslookup yahoo.com
Server:  localhost
Address:  127.0.0.1

Non-authoritative answer:
Name:    yahoo.com
Address:  127.0.0.1

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?

Thanks.. Bye.

Ariel.




More information about the bind-users mailing list