#118 PTR record synchronization doesn't work with IPv6 addresses
Closed: Fixed None Opened 10 years ago by thozza.

bind-dyndb-ldap uses function that does NOT support IPv6 addresses.

Namely in ldap_helper.c:2804 -> function modify_ldap_common() uses function inet_addr() to convert IP address from string to struct in_addr_t.

Struct in_addr_t is used to store IPv4 address and does not support IPv6 addresses. Also function inet_addr() supports only IPv4 addresses.

To support IPv4 and IPv6 addresses you should use inet_pton() instead of inet_addr(), and also make necessary changes to the code to use struct capable of storing IPv6 address.

If you would like to read more information about porting IPv4 code to support also IPv6, you can check http://uw714doc.sco.com/en/SDK_netapi/sockC.PortIPv4appIPv6.html.


Nsupdate with following input returns SERVFAIL without any message in logs (bind-dyndb-ldap version 3.1).

update add example.com 3600 IN AAAA 2001:DB8::1
send

Metadata Update from @pspacek:
- Issue assigned to pspacek
- Issue set to the milestone: Fedora 19

7 years ago

Login to comment on this ticket.

Metadata