DLZ $client% parameter segfault

Michael McConnell michael at winkstreaming.com
Wed Apr 3 23:12:34 UTC 2013


Thanks certainly blows up the possibility of doing native GeoDNS at the moment… Any chance I am overlooking a method which I could effectively get the clients address into a MySQL query with the current 9.9.2 release?

Thanks again,
Michael

--

Michael McConnell
WINK Streaming;
email: michael at winkstreaming.com
phone: +1 312 281-5433 x 7400
cell: +506 8706-2389
skype: wink-michael
web: http://winkstreaming.com

On Apr 2, 2013, at 4:03 AM, "Vadim S. Goncharov" <vgoncharov at nic.ru> wrote:

> On 02.04.2013 01:13, Michael McConnell wrote:
> 
> Unfortunatelly, $client$ is only supported in allowzonexfr() method (see e.g. http://bind-dlz.sourceforge.net/mysql_driver.html for some info about SDLZ methods). It would be nice to have it in others, too, but BIND does not pass it via current API, alas.
> 
> In all others 'client' struct member just becomes NULL, so leads to segfault (yes, that's a bug).
> 
>> The $client$ parameter appears to work for zone transfers, as per this
>> example https://github.com/opennetadmin/ona/wiki/bind-dlz
>> However if I use $client$ on any other queries bind segfaults.
>> 
>> Strace doesn't seem to show anything useful...
>> 
>> Ideas?
>> 
>> Thanks again,
>> Mike
>> 
>> On Apr 1, 2013, at 2:51 PM, Michael McConnell <michael at winkstreaming.com
>> <mailto:michael at winkstreaming.com>> wrote:
>> 
>>> Hello All,
>>> 
>>> I am trying to use Bind 9.9.2-P2 with the DLZ module, however I continue
>>> to run into segfault issues when trying to use $client$
>>> 
>>> {SELECT SQL_CACHE zone_name FROM dns_zones … }
>>> {{select zone_ttl AS ttl …. WHERE geo_ip LIKE '$client$'}
>>> 
>>> I am trying to user $client$ in the A record lookup, not the zone
>>> transfer. Is this possible?
>>> 
>>> Thanks so much,
>>> Michael
> 
> 
> -- 
> Vadim Goncharov     <vgoncharov at nic.ru>           RU-Center
> NET Department                            http://www.nic.ru
> NET-SYS Group             phone:+7(495)737-7646  (ext.4019)
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20130403/5b6686cc/attachment.html>


More information about the bind-users mailing list