Ticket #351 (closed defect: fixed)
pdns-server cannot bind to pdns-recursor via loopback IPv6
| Reported by: | anon | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | component1 | Version: | 2.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Trying to put more services onto IPv6 on my home network, and I can get most of the PowerDNS package to use IPv6. pdns-recursor can bind to ::1 and 127.0.0.1, and pdns-server can listen on my ULA IPv6 address and respond to queries there.
However, I cannot get pdns-server to link to pdns-recursor over IPv6. Unlike 'local-address' for IPv6 and 'local-ipv6' for IPv6 in pdns.conf, 'recursor' only parses IPv4 addresses properly. If you try using loopback IPv6 addresses like ::1 or [::1]:53, then pdns-server tries connecting to IPv4 addresses in the 96.0.0.0/8 netblock range, random everytime you restart pdns-server.
Suggested fix is either allow 'recursor' to parse both IPv4 and IPv6 addresses, or create a separate 'recursor-ipv6' directive to handle IPv6 addresses for binding to pdns-recursor.