z | 21 Oct 2011 05:12
Picon

About dlz for bind-view

Hi, guys

I am not sure if dlz has supported the $view$ index for a zone record
selecting.

For example:

view "Me" {
      match-clients { 127.0.0.1; };

      recursion no;

        dlz "Mysql zone" {
                database "mysql
                {host=127.0.0.1 dbname=dns ssl=false port=3306 user=root pass= }
                {select name from zones where name = '$zone$' limit 1}
                {select  ttl, type, priority , case when
lower(type)='txt' then concat('\"', data, '\"') when lower(type)='soa'
then concat_ws(' ', data, contact, serial, refresh, retry, expire,
minimum) else data end from records where zone_name='$zone$' and host
= '$record$' and view='Me'}
                {}
                {select ttl, type, host, priority , case when
lower(type)='txt' then concat('\"',data,'\"') else data end , contact
, serial, refresh, retry, expire, minimum from records where zone_name
= '$zone$' and view='Me'}
                {}";
        };

};
(Continue reading)

Evan Hunt | 21 Oct 2011 06:47

Re: About dlz for bind-view

> As we know, the $zone$ and $record$ are actually built-in, but are
> there anything like $view$? So that I do not need to specify the view
> name each time.

Sorry, no, %zone%, %record% and %client% is all.

--

-- 
Evan Hunt -- each <at> isc.org
Internet Systems Consortium, Inc.

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning <at> Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
z | 21 Oct 2011 08:24
Picon

Re: About dlz for bind-view

Thanks for your reply. But, personally, a $view$ token would make me
comfortable. :)

-- Alf.

On Fri, Oct 21, 2011 at 12:47 PM, Evan Hunt <each <at> isc.org> wrote:
>> As we know, the $zone$ and $record$ are actually built-in, but are
>> there anything like $view$? So that I do not need to specify the view
>> name each time.
>
> Sorry, no, %zone%, %record% and %client% is all.
>
> --
> Evan Hunt -- each <at> isc.org
> Internet Systems Consortium, Inc.
>
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning <at> Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> Bind-dlz-testers mailing list
> Bind-dlz-testers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
>

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
(Continue reading)


Gmane