Evan Hunt | 4 Mar 2013 20:48

DLZ LDAP users, help with testing?

Salutations,

I entertained myself over the weekend by doing a port of the DLZ LDAP
driver to work as a dlopen-able DLZ module, because I am entertained by
unusual things. Having gotten it to build, however, I now find that my
lack of experience with LDAP is hindering my testing. 

Has anyone out there gotten DLZ LDAP working with OpenLDAP on linux,
who could walk me through the setup process?  I have ldapadd telling me:

        adding new entry "o=bind-dlz"
        ldap_add: Server is unwilling to perform (53)
                additional info: no global superior knowledge

...and my guess is this would be easy to fix if I had a clue, but
alas, I do not.  Help?

Thanks!

--

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

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Danilo | 26 Feb 2013 14:56
Picon
Gravatar

Non-authoritative answer

Hello,
I have a trouble with bind9 dlz. I had configure a bind9 (version 9.8.0) and dlz
with mysql database.

When I try to resolve a zone I receive a Non-authoritative answer. But the zone
is on the DB, and all other things looks good.

$ nslookup -query=soa comune.ostuni.br.it dns1.convenzionefonia4.it
Server:		dns1.convenzionefonia4.it
Address:	31.199.7.28#53

Non-authoritative answer:
comune.ostuni.br.it
	origin = dns1.convenzionefonia4.it
	mail addr = hostmaster.comune.ostuni.br.it
	serial = 1361204190
	refresh = 10800
	retry = 7200
	expire = 604800
	minimum = 3600

Authoritative answers can be found from:
comune.ostuni.br.it	nameserver = dns2.convenzionefonia4.it.
comune.ostuni.br.it	nameserver = dns1.convenzionefonia4.it.

I need it will be authoritative. This is my config:
dlz "Consip Zones"{
        database "mysql
        {host=dns-vip dbname=dns user=dns pass=dns}
        {SELECT zone FROM records_db WHERE zone = '$zone$'}
(Continue reading)

Fabian von Romberg | 17 Feb 2013 02:48
Picon
Favicon

decrement reference

Hi All,

Lately I have seen on my debug terminal the following:

decrement_reference: delete from rbt: 0x7fc15f22aaa0 1850d3d2.anydomain.com

What does this mean?

Thanks in advance and regards,

Fabian

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
John Guthrie | 5 Nov 2012 03:53

What determines what zones get passed to DLZ?

Hello all,

I had a bit of a technical question.  I was wondering what determines which zones get passed to the dlz driver. 
From simple testing, I have seen that any zone with a zone declaration get handled by that declaration, as
opposed to the dlz driver.  However, does anything else just get passed to the dlz driver if it is declared? 
Could a zone be handled by something else before being handled by dlz?  I was wondering because when you
declare the dlz driver in the named.conf, there is no explicit mention of which zone is being handled by it,
however, only one dlz driver declaration is allowed per DNS view.

Thanks in advance.

John Guthrie
jguthrie <at> book.com
This electronic mail message contains information that (a) is or 
may be CONFIDENTIAL, PROPRIETARY IN NATURE, OR OTHERWISE 
PROTECTED 
BY LAW FROM DISCLOSURE, and (b) is intended only for the use of 
the addressee(s) named herein.  If you are not an intended 
recipient, please contact the sender immediately and take the 
steps necessary to delete the message completely from your 
computer system.

Not Intended as a Substitute for a Writing: Notwithstanding the 
Uniform Electronic Transaction Act or any other law of similar 
effect, absent an express statement to the contrary, this e-mail 
message, its contents, and any attachments hereto are not 
intended 
to represent an offer or acceptance to enter into a contract and 
are not otherwise intended to bind this sender, 
barnesandnoble.com 
(Continue reading)

kavin | 29 Oct 2012 10:03
Picon

dns master-slave transfer

Hi all:
 
Now,I want transfer the zone data from the master dns serverto slave dns server ,the master dns use bind-dlz+mysql and the slave dns server use bind+file.
 
If anyone test it successfully?If successfully ,can you tell what set the named.conf ?thinks
 
 
ps:use bind-9.9.2 version
kavin
------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Mark Goldfinch | 16 Jul 2012 04:39
Picon

dlz-bdbhpt-dynamic - a dlopen bdbhpt DLZ driver

Hi everyone,


Over the weekend I've taken it upon myself to write up a dlopen() capable bdbhpt DLZ driver.

My repository with my resulting work is here: https://github.com/goldie80/dlz-bdbhpt-dynamic

I'd appreciate any feedback on my work.

Thanks,
Mark.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Jorgen Lundman | 4 Jul 2012 08:39
Picon
Favicon

DLZ with cacher


Our current DLZ+LDAP+BIND is running very well. But something I have been 
playing with at the same time, instead of DLZ talking to LDAP for each 
QUERY, find a way to use BIND's caching.

One solution is to put forwarding-only forwarders in front of the DLZ DNS 
servers. But I'll skip that for now.

So, playing with the named.conf's 'view' to attempt to come to the same setup.

Using this named.conf:

view "internal" {
    match-clients { 127.0.0.1; };
    recursion no;
    allow-recursion { any; };

    zone "localhost" { type master; file "localhost.zone"; };

    dlz "ldap zone" {
        database "ldap 20 v3 simple {cn=admin,dc=COMPANY,dc=TLD} 
{LDAPPASSWORD} {LDAP-SERVER-IP}
ldap:///DNSZoneName=$zone$,ou=dns,dc=COMPANY,dc=TLD???objectclass=DNSZone
ldap:///DNSHostName=$record$,DNSZoneName=$zone$,ou=dns,dc=COMPANY,dc=TLD?DNSTTL,DNSType,DNSPreference,DNSData,DNSIPAddr,DNSPrimaryNS,DNSAdminEmail,DNSSerial,DNSRefresh,DNSRetry,DNSExpire,DNSMinimum?sub?objectclass=DNSAbstractRecord
{}
ldap:///DNSZoneName=$zone$,ou=dns,dc=COMPANY,dc=TLD?DNSTTL,DNSType,DNSHostName,DNSPreference,DNSData,DNSIPAddr,DNSPrimaryNS,DNSAdminEmail,DNSSerial,DNSRefresh,DNSRetry,DNSExpire,DNSMinimum?sub?objectclass=DNSAbstractRecord
ldap:///DNSZoneName=$zone$,ou=dns,dc=COMPANY,dc=TLD??sub?(&(objectclass=DNSXFR)(DNSIPAddr=$client$))";
    };

};

view "external" {
     recursion yes;
     allow-recursion { any; };
     max-cache-size 512M;
     forwarders { 127.0.0.1; };
     forward only;
};

The idea being that DNS queries from the Internet "external" will hit the 
"forward only" view and send queries to 127.0.0.1. Recursion is allowed 
here, so it talks to 127.0.0.1

Queries from 127.0.0.1 "internal", will use DLZ to talk to LDAP. Recursion 
is not allowed here, so we only reply with authoritative zones.

I can confirm by using the dig command that DLZ works as usual:

  # dig  <at> 0 test-unix.com NS
  ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
test-unix.com.       600     IN      SOA     dns02.COMPANY.TLD. 
1341383404\ <at> COMPANY.TLS.test-unix.com. 2008040201 28800 7200 604800 600

and using snoop, it does indeed talk to LDAP every time.

Then, by querying on the interface (not using 127.0.0.1):

# dig  <at> 172.20.11.172 test-unix.com NS
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
test-unix.com.       600     IN      SOA     dns02.COMPANY.TLD. 
1341383404\ <at> COMPANY.TLD.test-unix.com. 2008040201 28800 7200 604800 600

I can confirm with snoop, that only the first query talks to LDAP, after 
that, TTL is counting down.

test-unix.com.       553     IN      SOA

As far as I can tell, it appears to work just fine, and will do more 
performance testing before I try it on production.

Any suggestions, improvement or reason why it might not work? Otherwise, 
just sharing in case it helps others.

Lund

--

-- 
Jorgen Lundman       | <lundman <at> lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Craig Ward | 2 Jul 2012 07:37
Picon

DLZ with MySQL backend and DDNS

Hi,


I'm currently running BIND with DLZ MySQL support but I'd like to use dynamic DNS updates for these zones

I've read this feature was added in bind 9.8.1 which I've recompiled on Debian with . Is there any documentation for this feature? All I can find so far is this summary:  http://jpmens.net/2011/01/21/bind-gets-a-new-updateable-dlz-driver-dlopen/ 

I can run 'nsupdate' against traditional text zone files but not against DLZ zones.

Thanks,
Craig.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Rajiv | 30 Mar 2012 03:35

help

I want to use bind dlz with mysql backend for my ccTLD root server.  I have tried to configure in lab environment in centos 6, bind version 9.7.4-p1. My purpose to setup bind dlz with mysql backend to automate domain expiry in annual basis. Does bind dlz support ccTLD root server?

 

With best regards

rajiv

 

 

With best regards

rajiv

 

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
data tanger | 21 Mar 2012 19:39
Picon
Favicon

dlz ignores connection to postgres database

Hi everyone,

I tried to use the Bind Dlz driver but I can't get it to connect to the 
database.When I start Bind, I don't see any error but I think it 
ignores the connection to 
the database. 
I tried both Postgresql and Mysql with no success.
Here's what I added to the named.conf file:

dlz "PostgresZone" { 
database "postgres
{host=localhost port=5432 dbname=dnsdb user=dnsuser}
{SELECT id FROM zones WHERE zone = lower('%zone%') LIMIT 1}
{SELECT ttl, ttype, mx_priority, ddata FROM zones z, rrset r WHERE z.id=r.zid
AND zone = lower('%zone%') AND host = lower('%record%') AND type NOT 
IN('SOA','NS')}
{SELECT ttl, ttype, mx_priority, ddata, resp_person, serial, refresh, 
retry, expire, minimum FROM zones z, rrset r WHERE z.id = r.zid AND zone = 
lower('%zone%') AND type IN('SOA','NS')}
{SELECT ttl, ttype, host, mx_priority, ddata, resp_person, serial, 
refresh, retry, expire, minimum FROM zones z, rrset r WHERE z.id = r.zid
AND zone = lower('%zone%'}
{SELECT id FROM axfr WHERE zone = lower('%zone%' AND ip = '%client%'}";
};

Any help please?

Thank you in advance
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Bind-dlz-testers mailing list
Bind-dlz-testers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
Francesco Collini | 6 Mar 2012 16:37
Picon

PgBouncer and Bind DLZ

Hello Bind-DLZ ML!

Since i use a growing numbers of view, each one with a bind-dlz
statement, i have persistent connections to the postgresql database.

As i read it is not possible to reuse connections, i tried to
integrate pgBouncer in bind-dlz, as a frontend driver to postgresql
connection.

It seems reusing connections, and when i connection is not
transmitting, it reuse it.

As someone tried this or some other postgresql proxy?

Thank you!
Francesco

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

Gmane