generate the same answer to any query
David Nolan
vitroth+ at cmu.edu
Mon Mar 5 15:00:30 UTC 2007
--On Monday, March 05, 2007 16:23:16 +0200 Dan Sabau <dan.sabau at tbm.ro>
wrote:
> 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
> www.google.com, what I wont to do is that DNS replay with 1.1.1.1 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 "FAKE.zone";
};
};
in FAKE.zone:
$TTL 2
$ORIGIN .
@ IN SOA someserver.example.com host-master.example.com (1 1 1 1 1)
IN NS someserver2.example.com
IN NS someserver3.example.com
www.example.com IN A 1.1.1.2
captiveportal.example.com IN A 1.1.1.1
*.example.com IN A 1.1.1.1
*.com IN A 1.1.1.1
* IN A 1.1.1.1
(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
*.example.com above.)
-David Nolan
Network Service
Carnegie Mellon University
More information about the bind-users
mailing list