Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

[SOLVED] Bind 9.7.0_p1 and DLZ?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
gixer
n00b
n00b
Posts: 28
Joined: Sat Nov 22, 2003 8:11 pm
Location: Cypress, CA, USA
Contact:
Contact gixer
Website

[SOLVED] Bind 9.7.0_p1 and DLZ?

  • Quote

Post by gixer » Wed May 26, 2010 12:59 pm

I just updated to Bind 9.7.0_p1 and suddenly my DLZ is no longer working! It segfaults with the following error:

26-May-2010 05:48:02.611 Loading 'Mysql zone' using driver mysql
26-May-2010 05:48:02.611 Loading SDLZ driver.
26-May-2010 05:48:02.611 Required token $zone$ not found.
26-May-2010 05:48:02.611 Could not build all nodes query list
26-May-2010 05:48:02.611 mysql driver could not create database instance object.
Segmentation fault (core dumped)

I have not changed the named.conf file, and it's been working for years! I'm wondering if anyone else has run into this, or if there's been some kind of change to 9.7.0?

Downgrading to 9.4.3-P5, the problem goes away, and everything is good again.

Below is my 'working' dlz config in 9.4.3-P5:

dlz "Mysql zone" {
database "mysql
{host=localhost dbname=xxxxx ssl=false port=3306 user=xxxxx pass=xxxxxx}
{select zone from dns_records where zone = '%zone%' limit 1}
{select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"')
else data end from dns_records where zone = '%zone%' and host = '%record%'
and not (type = 'SOA' or type = 'NS')}
{select ttl, type, mx_priority, data, resp_person, serial, refresh, retry, expire, minimum
from dns_records where zone = '%zone%' and (type = 'SOA' or type='NS')}
{select ttl, type, host, mx_priority, data, resp_person, serial, refresh, retry, expire,
minimum from dns_records where zone = '%zone%' and not (type = 'SOA' or type = 'NS')}
{select zone from xfr_table where zone = '%zone%' and client = '%client%'}
{update data_count set count = count + 1 where zone ='%zone%'}";
};

Appreciate any help/comments....

-Allan
Last edited by gixer on Wed Mar 23, 2011 12:42 am, edited 1 time in total.
If you had to rebuild your car's engine on the freeway, every week, would that be ok? Then why would you use windowz? :)
Top
erik258
Advocate
Advocate
User avatar
Posts: 2650
Joined: Tue Apr 12, 2005 8:39 pm
Location: Twin Cities, Minnesota, USA
Contact:
Contact erik258
Website

  • Quote

Post by erik258 » Fri May 28, 2010 4:20 am

Not many use DLZ, from what I know, and your chances of getting relevant help from the gentooers at this point seem pretty slim. I personally forsook DLZ long ago rather than patch it to better handle losing its mysql connection. But the error seems to suggest that maybe you need to update your configuration to work with the new versions, since the error seems to say that something's wrong with your config.

Anyhow, if you want a real answer I recommend the dlz mailing list.

http://bind-dlz.sourceforge.net/mailing_list.html
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Top
gixer
n00b
n00b
Posts: 28
Joined: Sat Nov 22, 2003 8:11 pm
Location: Cypress, CA, USA
Contact:
Contact gixer
Website

[SOLVED] Bind 9.7.0_p1 and DLZ?

  • Quote

Post by gixer » Wed Mar 23, 2011 12:42 am

Ok, so MONTHS later, I found the answer to this! Thought I would share. Those using DLZ with Bind, like myself, WILL run into this problem! If you look at the docs on the homepage for DLZ, the examples it gives are WRONG!! Only slightly, but enough to crash bind when attempting to use DLZ. Here's what's wrong:

In the examples, it uses '%zone%' and '%record%' ... really they MUST be '$zone$' and '$record$' ... any 'token' is with a $ NOT a %. I don't know at what version this changed, but no one bothered to update the docs!! Anyways I finally found it and hope it saves someone else time and effort.
If you had to rebuild your car's engine on the freeway, every week, would that be ok? Then why would you use windowz? :)
Top
jelf
n00b
n00b
Posts: 8
Joined: Tue Jul 01, 2014 10:40 pm

Re: [SOLVED] Bind 9.7.0_p1 and DLZ?

  • Quote

Post by jelf » Fri Sep 18, 2015 10:13 pm

gixer wrote:Ok, so MONTHS later, I found the answer to this! Thought I would share. Those using DLZ with Bind, like myself, WILL run into this problem! If you look at the docs on the homepage for DLZ, the examples it gives are WRONG!! Only slightly, but enough to crash bind when attempting to use DLZ. Here's what's wrong:

In the examples, it uses '%zone%' and '%record%' ... really they MUST be '$zone$' and '$record$' ... any 'token' is with a $ NOT a %. I don't know at what version this changed, but no one bothered to update the docs!! Anyways I finally found it and hope it saves someone else time and effort.
God bless you
Sorry for my english, i'm trying
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic