Quote:
Originally Posted by NightSoul
Hmm, this work only with one zone ( *.example.com) or with all addresses (*.*)?
|
It would depend on what queries the zone file is set to match.
If your config file lists:
Code:
zone "example.com" in {
type master;
file "dummy";
};
and file "dummy" contains that entry, then it will match for all queries to example.com (mail.example.com, host1.example.com, etc), but not any others.
If the config file instead lists:
Code:
zone "." in {
type master;
file "dummy";
};
then it will match all queries that don't match another zone (www.example.net, host2.example2.com, etc.)
I actually have this set up to return 127.0.0.1 to all queries to a particular domain I don't want my users (or rather their computers) accessing.