PowerDNS / pdns

PowerDNS Authoritative, PowerDNS Recursor, dnsdist
https://www.powerdns.com/
GNU General Public License v2.0
3.65k stars 905 forks source link

LDAP backend with strict mode does not work with shorthand AAAA records #14632

Open Freddo3000 opened 3 weeks ago

Freddo3000 commented 3 weeks ago

Short description

Shorthand AAAA records using the LDAP backend in strict mode don't create PTR records, while fullsize AAAA records do.

Environment

Steps to reproduce

  1. Set up a ldap backend according to https://doc.powerdns.com/authoritative/backends/ldap.html
  2. Set ldap-mode to strict
  3. Create a SOA for a ip6.arpa record
  4. Create a entry with a shorthand ipv6 dns record, ie 1:2::3, notice that PTR records don't resolve
  5. Expand to 1:2:0:0:0:0:0:3, notice that PTR records now resolve

Expected behaviour

Shorthand ipv6 AAAA records should register PTR records the same way as full size ipv6 addresses.

Actual behaviour

Shorthand ipv6 AAAA records don't register corresponding PTR records.

Other information

Habbie commented 2 weeks ago

this is documented at https://doc.powerdns.com/authoritative/backends/ldap.html#ipv6-reverse-lookup-doesn-t-work-in-strict-mode, and is unlikely to see improvement any time soon