generate the same answer to any query

David Nolan vitroth+ at
Mon Mar 5 15:00:30 UTC 2007

--On Monday, March 05, 2007 16:23:16 +0200 Dan Sabau <dan.sabau at> 

> Hi,
> I'm new to this list so sorry if I ask something that was already posted.
> What I wont to do is something like this:
> for all the ip's that query my dns server return a valid replay and for
> some ip's to replay to the request with the same thing.
> To be more clear host A query's DNS server 1 and asks for
>, what I wont to do is that DNS replay with and
> not with google's ip. I know I have to work with view's that is not the
> issue, the issue is how do I do the thing that I've described befor in
> the google example.

In your named.conf:

view "fakedata" {
  match-clients { IP-LIST-HERE; };
  zone "." {
        type master;
        file "";

$TTL 2
@ IN SOA (1 1 1 1 1)
    IN NS
* IN A
*.com IN A
* IN A

(Adjust the fake date as desired of course, the key is that any domain you 
put explicit entries in for must have its own wildcard entry, as with 
* above.)

-David Nolan
 Network Service
 Carnegie Mellon University

More information about the bind-users mailing list