Answer for a specific host, but recurse for all others within a zone

Jon Fullmer FullmerJF at
Fri May 9 17:47:16 UTC 2014

(Sorry, let's try that again WITHOUT "smart quotes":)

Rich, you and Barry both touched on my original tactic. I can define
"" as a master zone with a single entry. The problem, as
you pointed out, is that this doesn't catch "".
Unfortunately, the "www" section will have any number of random hosts, so
putting manually entries will be impractical.

I'm intrigued by the RPZ option. I'm not familiar with it. I realize that
it's only available in 9.8.1 and above (which will require me to upgrade;
I'm using 9.7.3). I've been scouring the Net for examples, but they're
typically targeted to one of RPZ's main purposes (spam blacklisting,

IF I易m following the config right, let易s say that the local server in my
example is

---- named.conf ----

options {
   response-policy { ""; };

zone "" {
  type master;
  file "";

---- ----

$TTL 900

@    IN SOA   0001 900 900 604800 30
     IN NS localhost.

@    IN A
*    IN CNAME .

---- end ----

Is this right? I guess the trick I'm trying to sort out is how to tell the
zone file to "recurse, if not explicitly ''." What else
am I leaving out?

 - Jon

On 5/8/14, 10:05 PM, "Rich Goodson" <rgoodson at> wrote:

>On your resolver, create a zone called
>and only have one entry, an A record for the zone itself.  something like
>this:---begin zonefile---
> in soa (
>        2014050901
>        3H
>        300
>        2W
>        3600 )
>      in ns
>      in ns
>      in a
>---end zonefile---
>This will still allow and to resolve, but will
>recurse for  If you want that to resolve, you'll
>have to 
>add that to the zone as well, as you're claiming authority for
> and everything "to the left" of that as well.
>It just occurred to me that you could also provide a local answer for a
>name with RPZ, which would give the benefit of continuing to recurse for
>On May 9, 2014, at 1:15 AM, fullmerjf at wrote:
>> Does anyone know how I might configure bind to answer for a specific
>>host within the zone, but perform a recursive lookup for the rest of the
>> For example, given the domain "", how might I configure a local
>>DNS server to reslove "" to, maybe, a local server, but
>>still allow "", "" and ""
>>to still recursively resolve?
>> Is there a way?
>> - Jon
>> _______________________________________________
>> Please visit 
>>a95980c to unsubscribe from this list
>> bind-users mailing list
>> bind-users at

 NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.

More information about the bind-users mailing list