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

