DNS server to resolve out just one ip

Kevin Darcy kcd at daimlerchrysler.com
Wed Jun 29 00:07:48 UTC 2005

flaifel wrote:

>Hi All,
>Im trying to configure a primary DNS server.
>The function of the server as the following:
>Any one who requests any site, for example www.google.com or any other
>thing, DNS will resolve it to the local ip address for the DNS server
>[] so i can send at first a welcome message.
>Can this be done ?
Well, you probably don't want to resolve those names to, since 
that will cause the client to connect to itself.

Generally speaking, you can accomplish what you want to do by defining a 
root zone containing an A-record wildcard entry. Note that this is an 
all-or-nothing commitment, though: you can't give a "default" answer for 
names that don't exist (e.g. wwww.google.com) while at the same time 
resolving names that do exist normally. A root-zone wildcard will 
resolve *all* names to the address(es) you specify, and not even look at 
any other sources of DNS information.

- Kevin

More information about the bind-users mailing list