teszter | 4 Apr 2008 16:58
Picon
Favicon

Re: DLZ database drivers for Bind win32

Hi all

I am trying to build a new win32 from Bind 9.4.2 with MySQL support,
but till now i was not successful :)

I have some old build you can download it from here:
http://web.t-online.hu/marcz/dlz-bind-win32.html

On the page you will find some info about the source, what i used (version number of bind patch openssl ...) for the build.

I am using a visual c++ 6.0, and i set these option to build bind with DLZ support:

Project -> Settings (ALT + F7)
for named on the C/C++ tab you have to set in "Poject Options"
/D "DLZ"
and some from  these other options which you want to use:
/D "DLZ_FILESYSTEM" /D "DLZ_BDB" /D "DLZ_POSTGRES" /D "DLZ_MYSQL" /D "DLZ_ODBC"


Regards Gábor

Gilles Buisson <gilles.buisson <at> namebay.com> írta:

Ok, thank you for the answer, I've made some try and no problem to build
Bind standard with Visual studio 2005
but I'm novice with this tool and so how or where can I put the option like
"--with-dlz-odbc" as in the ./configure script in Linux ?
is it somewhere in the "BuildSetup.bat" or after directly in the Visual
Studio solution ?

Many thanks for nay help

Gilles

De : bind-dlz-testers-bounces <at> lists.sourceforge.net
[bind-dlz-testers-bounces <at> lists.sourceforge.net] De la part de Mark
Strother
Envoyé : mardi 18 mars 2008 20:59
ŕ154 : bind-dlz-testers <at> lists.sourceforge.net
Objet : Re: [Bind-dlz-testers] DLZ database drivers for Bind win32

Hi Gilles,

You have to compile Bind yourself with the right options. ItďFFDs relatively
easy to do though. We had Bind up and running with a MS SQL database backend
in about half a day and itďFFDs been quite solid.
 Mark Strother
 Pacific Online
 Phone: 604-638-6010 ext. 222
 Fax: 604-638-6020
 Toll Free: 1-877-503-9870
 http://www.pacificonline.com

From: bind-dlz-testers-bounces <at> lists.sourceforge.net
[bind-dlz-testers-bounces <at> lists.sourceforge.net] On Behalf Of Gilles
Buisson
Sent: Friday, March 14, 2008 7:53 AM
To: bind-dlz-testers <at> lists.sourceforge.net
Subject: [Bind-dlz-testers] DLZ database drivers for Bind win32

Hello

Does anyone know if recent Bind win32 binaries with DLZ database drivers
(odbc, mysql, ďFFD) already exist ?
I know that DLZ core is inside Bind since version 9.4 but it seems that the
driver are not include
Maybe IďFFDm wrong and in this case happy to know how to
activate/include/configure Bind to use them
Or have I to compiling myself Bind with the right option ?

Regards

Gilles Buisson
Administrateur Systŕ10Dme
NAMEBAY
27 Bd des Moulins
98000 Monaco
Phone : +377 97 70 61 64
Fax    : +377 97 97 21 13
http://www.namebay.com




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers



________________________________________________________
Egy IPOD TOUCH vagy akár egy NOTEBOOK vár Rád a Jobline-on! Csak regisztrálj a Jobline Álláspostára, és töltsd fel az önéletrajzod a nyereményekért! Részleteket a www.jobline.hu weboldalon.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Rob Butler | 4 Apr 2008 18:45
Picon
Favicon

Re: DLZ database drivers for Bind win32

Can someone help him out with this.. I don't do windows much anymore.

Thanks
Rob

----- Original Message ----
From: teszter <phpteszt <at> freemail.hu>
To: bind-dlz-testers <at> lists.sourceforge.net
Sent: Friday, April 4, 2008 10:58:31 AM
Subject: Re: [Bind-dlz-testers] DLZ database drivers for Bind win32

Hi all

I am trying to build a new win32 from Bind 9.4.2 with MySQL support,
but till now i was not successful :)

I have some old build you can download it from here:
http://web.t-online.hu/marcz/dlz-bind-win32.html

On the page you will find some info about the source, what i used (version number of bind patch openssl ...) for the build.

I am using a visual c++ 6.0, and i set these option to build bind with DLZ support:

Project -> Settings (ALT + F7)
for named on the C/C++ tab you have to set in "Poject Options"
/D "DLZ"
and some from  these other options which you want to use:
/D "DLZ_FILESYSTEM" /D "DLZ_BDB" /D "DLZ_POSTGRES" /D "DLZ_MYSQL" /D "DLZ_ODBC"


Regards Gábor

Gilles Buisson <gilles.buisson <at> namebay.com> írta:

Ok, thank you for the answer, I've made some try and no problem to build
Bind standard with Visual studio 2005
but I'm novice with this tool and so how or where can I put the option like
"--with-dlz-odbc" as in the ./configure script in Linux ?
is it somewhere in the "BuildSetup.bat" or after directly in the Visual
Studio solution ?

Many thanks for nay help

Gilles

De : bind-dlz-testers-bounces <at> lists.sourceforge.net
[bind-dlz-testers-bounces <at> lists.sourceforge.net] De la part de Mark
Strother
Envoyé : mardi 18 mars 2008 20:59
ŕ154 : bind-dlz-testers <at> lists.sourceforge.net
Objet : Re: [Bind-dlz-testers] DLZ database drivers for Bind win32

Hi Gilles,

You have to compile Bind yourself with the right options. ItďFFDs relatively
easy to do though. We had Bind up and running with a MS SQL database backend
in about half a day and itďFFDs been quite solid.
 Mark Strother
 Pacific Online
 Phone: 604-638-6010 ext. 222
 Fax: 604-638-6020
 Toll Free: 1-877-503-9870
 http://www.pacificonline.com

From: bind-dlz-testers-bounces <at> lists.sourceforge.net
[bind-dlz-testers-bounces <at> lists.sourceforge.net] On Behalf Of Gilles
Buisson
Sent: Friday, March 14, 2008 7:53 AM
To: bind-dlz-testers <at> lists.sourceforge.net
Subject: [Bind-dlz-testers] DLZ database drivers for Bind win32

Hello

Does anyone know if recent Bind win32 binaries with DLZ database drivers
(odbc, mysql, ďFFD) already exist ?
I know that DLZ core is inside Bind since version 9.4 but it seems that the
driver are not include
Maybe IďFFDm wrong and in this case happy to know how to
activate/include/configure Bind to use them
Or have I to compiling myself Bind with the right option ?

Regards

Gilles Buisson
Administrateur Systŕ10Dme
NAMEBAY
27 Bd des Moulins
98000 Monaco
Phone : +377 97 70 61 64
Fax    : +377 97 97 21 13
http://www.namebay.com




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers



________________________________________________________
Egy IPOD TOUCH vagy akár egy NOTEBOOK vár Rád a Jobline-on! Csak regisztrálj a Jobline Álláspostára, és töltsd fel az önéletrajzod a nyereményekért! Részleteket a www.jobline.hu weboldalon.


You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Mark Strother | 4 Apr 2008 21:50

Re: DLZ database drivers for Bind win32

We’re putting together some instructions as this question has come up a few times. It’s a pretty straightforward process with Visual Studio 2005. Hopefully we’ll be able to finish the docs sometime next week. I’ll post them here when done.

Mark

 

From: bind-dlz-testers-bounces <at> lists.sourceforge.net [mailto:bind-dlz-testers-bounces <at> lists.sourceforge.net] On Behalf Of Rob Butler
Sent: Friday, April 04, 2008 9:46 AM
To: bind-dlz-testers <at> lists.sourceforge.net
Subject: Re: [Bind-dlz-testers] DLZ database drivers for Bind win32

 

Can someone help him out with this.. I don't do windows much anymore.

Thanks
Rob

----- Original Message ----
From: teszter <phpteszt <at> freemail.hu>
To: bind-dlz-testers <at> lists.sourceforge.net
Sent: Friday, April 4, 2008 10:58:31 AM
Subject: Re: [Bind-dlz-testers] DLZ database drivers for Bind win32

Hi all

I am trying to build a new win32 from Bind 9.4.2 with MySQL support,
but till now i was not successful :)

I have some old build you can download it from here:
http://web.t-online.hu/marcz/dlz-bind-win32.html

On the page you will find some info about the source, what i used (version number of bind patch openssl ...) for the build.

I am using a visual c++ 6.0, and i set these option to build bind with DLZ support:

Project -> Settings (ALT + F7)
for named on the C/C++ tab you have to set in "Poject Options"
/D "DLZ"
and some from  these other options which you want to use:
/D "DLZ_FILESYSTEM" /D "DLZ_BDB" /D "DLZ_POSTGRES" /D "DLZ_MYSQL" /D "DLZ_ODBC"


Regards Gábor

Gilles Buisson <gilles.buisson <at> namebay.com> írta:

Ok, thank you for the answer, I've made some try and no problem to build
Bind standard with Visual studio 2005
but I'm novice with this tool and so how or where can I put the option like
"--with-dlz-odbc" as in the ./configure script in Linux ?
is it somewhere in the "BuildSetup.bat" or after directly in the Visual
Studio solution ?

Many thanks for nay help

Gilles

De : bind-dlz-testers-bounces <at> lists.sourceforge.net
[bind-dlz-testers-bounces <at> lists.sourceforge.net] De la part de Mark
Strother
Envoyé : mardi 18 mars 2008 20:59
ŕ154 : bind-dlz-testers <at> lists.sourceforge.net
Objet : Re: [Bind-dlz-testers] DLZ database drivers for Bind win32

Hi Gilles,

You have to compile Bind yourself with the right options. ItďFFDs relatively
easy to do though. We had Bind up and running with a MS SQL database backend
in about half a day and itďFFDs been quite solid.
 Mark Strother
 Pacific Online
 Phone: 604-638-6010 ext. 222
 Fax: 604-638-6020
 Toll Free: 1-877-503-9870
 http://www.pacificonline.com

From: bind-dlz-testers-bounces <at> lists.sourceforge.net
[bind-dlz-testers-bounces <at> lists.sourceforge.net] On Behalf Of Gilles
Buisson
Sent: Friday, March 14, 2008 7:53 AM
To: bind-dlz-testers <at> lists.sourceforge.net
Subject: [Bind-dlz-testers] DLZ database drivers for Bind win32

Hello

Does anyone know if recent Bind win32 binaries with DLZ database drivers
(odbc, mysql, ďFFD) already exist ?
I know that DLZ core is inside Bind since version 9.4 but it seems that the
driver are not include
Maybe IďFFDm wrong and in this case happy to know how to
activate/include/configure Bind to use them
Or have I to compiling myself Bind with the right option ?

Regards

Gilles Buisson
Administrateur Systŕ10Dme
NAMEBAY
27 Bd des Moulins
98000 Monaco
Phone : +377 97 70 61 64
Fax    : +377 97 97 21 13
http://www.namebay.com




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers




________________________________________________________
Egy IPOD TOUCH vagy akár egy NOTEBOOK vár Rád a Jobline-on! Csak regisztrálj a Jobline Álláspostára, és töltsd fel az önéletrajzod a nyereményekért! Részleteket a www.jobline.hu weboldalon.

 

 

You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Michael J. Ayers | 8 Apr 2008 23:09
Picon

Re: dnsEditor [was: DLZ Web Management Interface]

I have made some modifications to your interface to support reverse zones and custom per entry TTL's.  I can forward all this stuff to you if you would like.

Michael

On Thu, Feb 14, 2008 at 10:33 AM, Lokkju Brennr <lokkju <at> gmail.com> wrote:
Well, I know it has a long way to go - we manage about 900 domains
with it on a daily basis, and it was written specifically to fill a
need in our infrastructure.
My plan is to eventually rebuild it in django, but there a few things
I really want to have solved:
- I need some sort of user defined queries/views for CRUD to the
database, so the end user can use their own database format - one
option is to just require that some stored procedures exist, and use
those (obviously, this includes the ability to connect to multiple
backends).
- subdomains as separate records needs to be supported
- per domain/per records access control and authentication needs to be
implemented
- more/custom record types.  the main records types are supported,
including TXT, but some people need more, and sometimes need custom or
unique record types

and then, as you pointed out, an ajax search/paging or zones would be
necessary for any large amount of zones.

I am interested in developing it further, but just don't have much
incentive to right now, as it *works*, and it is at the point that it
covers all of our DNS management needs.  Not to mention, I always have
way to many projects going, so...

Lokkju

On Thu, Feb 14, 2008 at 12:44 AM, Jan-Piet Mens <jp <at> mens.de> wrote:
> Lokkju,
>
>  On Thu Feb 14 2008 at 08:43:53 CET, Lokkju Brennr wrote:
>
>  > https://svn.lokkju.com/svn/dnsEditor/trunk
>
>  It is very good looking and quite functional, but there are some things
>  wrong with it:
>
>  1. You load all the zones into a table in the browser; that works well
>    enough for a handful of zones, but try pointing the program at a
>    database with 100k zones in it ;-)
>
>  2. Unless I've overlooked something, there is no way to get additional
>    types into the database (SRV, etc.)
>
>  3. If the database contains other DNS record types, they are not
>    displayed.
>
>  4. There is something wrong with $cfg_primary_ns; PHP complains that
>    $primary_ns is undefined...
>
>  5. The button `update server' should be unnecessary; the provided shell
>    script dumps records and inserts them into other databases. People
>    will typically use MySQL replication for that...
>
>  Apart from that, you've done a great job, and it would be very valuable
>  if you could continue on it.
>
>         -JP
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers



--
Michael J. Ayers
Senior Systems Engineer
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Michael J. Ayers | 8 Apr 2008 23:15
Picon

TTL issues using Bind-DLZ

Hey all,

I am using bind-dlz with mysql and am having issues with ttls.  My SOA has a default ttl of 86400 for my primary domain.  Unless I am incorrect, all other entries in the domain should default to that ttl when queried.  However, when I query the DNS, the SOA ttl shows up properly, but if i am looking up something like www.example.com, which would have a null ttl value in the database, it comes back with a ttl of zero.  How would I get it to accept the default ttl for the entire domain as opposed to having to enter a ttl for EVERY entry in my zone (which would be really really tedious).

Thanks

--
Michael J. Ayers
Senior Systems Engineer

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Rob Butler | 9 Apr 2008 00:41
Picon
Favicon

Re: TTL issues using Bind-DLZ

With DLZ you need a TTL entry for every record, it won't use the SOA default TTL.

I believe what Bind does internally is set the TTL to the SOA's TTL for any record without it's own specific TTL.  So ultimately in the in-memory Bind DB every record does have a TTL.

Instead of setting a TTL for every record you could implement a sub-query to get the SOA TTL if the record's TTL is null.  Does MySQL support sub-queries now?  I know this would be possible with PostgreSQL.

Rob

----- Original Message ----
From: Michael J. Ayers <ayerslists <at> gmail.com>
To: bind-dlz-testers <bind-dlz-testers <at> lists.sourceforge.net>
Sent: Tuesday, April 8, 2008 5:15:24 PM
Subject: [Bind-dlz-testers] TTL issues using Bind-DLZ

Hey all,

I am using bind-dlz with mysql and am having issues with ttls.  My SOA has a default ttl of 86400 for my primary domain.  Unless I am incorrect, all other entries in the domain should default to that ttl when queried.  However, when I query the DNS, the SOA ttl shows up properly, but if i am looking up something like www.example.com, which would have a null ttl value in the database, it comes back with a ttl of zero.  How would I get it to accept the default ttl for the entire domain as opposed to having to enter a ttl for EVERY entry in my zone (which would be really really tedious).

Thanks

--
Michael J. Ayers
Senior Systems Engineer


You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Michael J. Ayers | 9 Apr 2008 18:21
Picon

Order of Operations issue.

I am trying to get a DNS server here answering queries for our domain, but it is not working in the way I was hoping.  I have set up the server to answer for our domain as if it is the Authoritative DNS server.  Unfortunately, it seems that whenever I do a lookup against it, the server goes out to the root servers, finds the ACTUAL authoritative server for the domain, then retrieves information from that server.  I want it to not do that so that I can test that my database is working properly and that the server is querying it.  Any ideas?  I have attached my named.conf below.  It seems it is not even trying to query the database from what I can see in the debug log I created.


acl "all" { 0.0.0.0/0; };
options {
       directory "/var/named";
       /* forward first; */
       /* forwarders { */
       /*      4.2.2.1; */
       /*      4.2.2.4; */
       /* }; */
       allow-query { "all"; };
};

logging {
       channel test.debug {
               file "/tmp/satest.debug.log";
               severity debug;
               print-time yes;
               print-severity yes;
               print-category yes;
       };
       category "default" { test.debug; };
       category "security" { test.debug; };
       category "config" { test.debug; };
       category "queries" { test.debug; };
       category "parser" { test.debug; };
       category "eventlib" { test.debug; };
};

view "internal" {
       match-clients { localnets; 10.0.0.0/8; };

       zone "." {
               type hint;
               file "root.hints";
       };

       dlz "Mysql zone" {
               database "mysql
               {host=localhost dbname=dns_internal user=dns pass=password}
               {select zone from records where zone = '%zone%'}
               {select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') when lower(type) = 'soa'
                 then concat_ws(' ', data, resp_person, serial, refresh, retry, expire, minimum) else data end from records
                 where zone = '%zone%' and host = '%record%'}
               {}
               {select ttl, type, host, mx_priority, case when lower(type)='txt' then
                 concat('\"', data, '\"') else data end, resp_person, serial, refresh, retry, expire,
                 minimum from records where zone = '%zone%'}
               {select zone from xfr where zone = '%zone%' and client = '%client%'}";
       };
};

view "external" {
       match-clients { any; };

       zone "." {
            type hint;
            file "root.hints";
       };

       dlz "Mysql zone" {
               database "mysql
               {host=localhost dbname=dns_external user=dns pass=password}
               {select zone from records where zone = '%zone%'}
               {select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') when lower(type) = 'soa'
                 then concat_ws(' ', data, resp_person, serial, refresh, retry, expire, minimum) else data end from records
                 where zone = '%zone%' and host = '%record%'}
               {}
               {select ttl, type, host, mx_priority, case when lower(type)='txt' then
                 concat('\"', data, '\"') else data end, resp_person, serial, refresh, retry, expire,
                 minimum from records where zone = '%zone%'}
               {select zone from xfr where zone = '%zone%' and client = '%client%'}";
       };
};

Thanks for any and all help.


--
Michael J. Ayers
Senior Systems Engineer

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Agnello George | 9 Apr 2008 19:12
Picon

do not want to use pgsql in bind 9.5

using the following src rp
http://people.redhat.com/atkac/bind/bind-9.5.0-29.3.b2.fc9.src.rpm

when i edit the bind.spec

how do i tell the spec fiel to ignoore pgsql ... since i am using Mysql

thanka !!

--

-- 
Regards
Agnello Dsouza
www.linux-vashi.blogspot.com
www.bible-study-india.blogspot.com

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Rob Butler | 9 Apr 2008 20:14
Picon
Favicon

Re: Order of Operations issue.

Your SQL queries probably aren't returning the results you expect.  Thus, DLZ says its not authoratative and the query falls through to the cache and recursively resolves the request.

Run bind in the foreground and turn debugging up so you see the exact SQL being sent in your queries.  Then copy and paste that SQL into your favorite SQL query tool.  It is VERY important you copy and paste the query, if you retype it you'll change it and violate the results.  It could be something as simple as case-sensitivity in your DB..

I think DLZ lower cases all names before searching in the DB.  If your DB is setup to be case sensitive and has upper, or mixed case zone names then things won't match, and you get no results back.

Rob

----- Original Message ----
From: Michael J. Ayers <ayerslists <at> gmail.com>
To: bind-dlz-testers <bind-dlz-testers <at> lists.sourceforge.net>
Sent: Wednesday, April 9, 2008 12:21:03 PM
Subject: [Bind-dlz-testers] Order of Operations issue.

I am trying to get a DNS server here answering queries for our domain, but it is not working in the way I was hoping.  I have set up the server to answer for our domain as if it is the Authoritative DNS server.  Unfortunately, it seems that whenever I do a lookup against it, the server goes out to the root servers, finds the ACTUAL authoritative server for the domain, then retrieves information from that server.  I want it to not do that so that I can test that my database is working properly and that the server is querying it.  Any ideas?  I have attached my named.conf below.  It seems it is not even trying to query the database from what I can see in the debug log I created.


acl "all" { 0.0.0.0/0; };
options {
       directory "/var/named";
       /* forward first; */
       /* forwarders { */
       /*      4.2.2.1; */
       /*      4.2.2.4; */
       /* }; */
       allow-query { "all"; };
};

logging {
       channel test.debug {
               file "/tmp/satest.debug.log";
               severity debug;
               print-time yes;
               print-severity yes;
               print-category yes;
       };
       category "default" { test.debug; };
       category "security" { test.debug; };
       category "config" { test.debug; };
       category "queries" { test.debug; };
       category "parser" { test.debug; };
       category "eventlib" { test.debug; };
};

view "internal" {
       match-clients { localnets; 10.0.0.0/8; };

       zone "." {
               type hint;
               file "root.hints";
       };

       dlz "Mysql zone" {
               database "mysql
               {host=localhost dbname=dns_internal user=dns pass=password}
               {select zone from records where zone = '%zone%'}
               {select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') when lower(type) = 'soa'
                 then concat_ws(' ', data, resp_person, serial, refresh, retry, expire, minimum) else data end from records
                 where zone = '%zone%' and host = '%record%'}
               {}
               {select ttl, type, host, mx_priority, case when lower(type)='txt' then
                 concat('\"', data, '\"') else data end, resp_person, serial, refresh, retry, expire,
                 minimum from records where zone = '%zone%'}
               {select zone from xfr where zone = '%zone%' and client = '%client%'}";
       };
};

view "external" {
       match-clients { any; };

       zone "." {
            type hint;
            file "root.hints";
       };

       dlz "Mysql zone" {
               database "mysql
               {host=localhost dbname=dns_external user=dns pass=password}
               {select zone from records where zone = '%zone%'}
               {select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') when lower(type) = 'soa'
                 then concat_ws(' ', data, resp_person, serial, refresh, retry, expire, minimum) else data end from records
                 where zone = '%zone%' and host = '%record%'}
               {}
               {select ttl, type, host, mx_priority, case when lower(type)='txt' then
                 concat('\"', data, '\"') else data end, resp_person, serial, refresh, retry, expire,
                 minimum from records where zone = '%zone%'}
               {select zone from xfr where zone = '%zone%' and client = '%client%'}";
       };
};

Thanks for any and all help.


--
Michael J. Ayers
Senior Systems Engineer


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Michael J. Ayers | 11 Apr 2008 23:14
Picon

Zone transfer question

Hey all,

In the DB xfr table, are we allowed to use slash notation in the client field to match a whole bunch of clients?  I have to be able to axfr to a bunch of Windows domain servers so I added 10.0.0.0/8 in there, but I am not sure if that will work.

Thoughts?


--
Michael J. Ayers
Senior Systems Engineer

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers

Gmane