<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1442519457575_28825">Hello all,</div><div id="yui_3_16_0_1_1442519457575_28825"><br></div><div id="yui_3_16_0_1_1442519457575_28825">Recently I've installed bind9 (ubuntu version) wirh backend MySQL, but I'm having some problems with the reverse lookup.</div><div id="yui_3_16_0_1_1442519457575_28825"><br></div><div id="yui_3_16_0_1_1442519457575_28825">I've configured the named.conf.local file with the following string but bind is not accepting it.</div><div id="yui_3_16_0_1_1442519457575_28825"><br></div><div id="yui_3_16_0_1_1442519457575_28825" dir="ltr">dlz "Mysql zone" {<br clear="none" class="">        database "mysql<br clear="none" class="">                {host=127.0.0.1 dbname=db_name user=db_user pass=db_pass}<br clear="none" class="">                {select zone from dns_records where zone = '$zone$'}<br clear="none" class="">                {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 dns_records where zone = '$zone$' and host = '$record$' and not (type = 'SOA' or type = 'NS')}<br clear="none" class="">                {}<br clear="none" class="">                {select zone from reverse_records where zone = '$zone$'}<br clear="none" class="">                {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 reverse_records where zone = '$zone$' and host = '$record$' and not (type = 'SOA' or type = 'NS')}";<br clear="none" class="">};<br></div><div id="yui_3_16_0_1_1442519457575_28825" dir="ltr"><br></div><div id="yui_3_16_0_1_1442519457575_28825" dir="ltr">Since with the TXT named.conf.file, the reverse lookup is a different zone, I presume I had to create a second database to store its records. Can anyone help me solve this problem? I've search in many discussion lists and everyone complain abou the difficulty to set up the reverse lookup with MySQL as backend.</div><div id="yui_3_16_0_1_1442519457575_28825" dir="ltr"><br></div><div id="yui_3_16_0_1_1442519457575_28825" dir="ltr">Regards</div><div id="yui_3_16_0_1_1442519457575_28825" dir="ltr"><br></div><div id="yui_3_16_0_1_1442519457575_28825" dir="ltr">Alex</div></div></body></html>