Running both a cache-only and an authoritative server on the same server

Phil Mayers p.mayers at imperial.ac.uk
Thu Jun 17 12:36:10 UTC 2010


On 17/06/10 13:35, Phil Mayers wrote:
> On 17/06/10 12:39, Jørn Skjerven wrote:
>> Hi!
>>
>> I've tried to search the archive for for this, but could not find
>> anything relevant.
>>
>> We currently run a server with an authoritative set for domains. We want
>> to use the same server as a cache-only DNS for other customers as well
>> on a secondary IP.
>>
>> Is it possible to achieve this in a single named.conf, or is it
>> recommended to run two instances of bind, each with a different
>> listen-on<ip>  statement?
>
> Sure. Use views:
>
> view authoritative {
>     recursion no;
>     match-destinations { mycurrentip; };
>     zone ...
> };
>
> view authoritative {
>     recursion yes;
>     match-destinations { myrecurseip; };
> };

Bah; that last should of course be:

view recursive {
    recursion yes;
    match-destinations { myrecurseip; };
};



More information about the bind-users mailing list