After configuring private-address (and private-domain) entries I was hoping that unbound would simply strip the private IP addresses from responses.
However in my testing (unbound 1.4.8 and previous versions) I’m seeing that the queries will SERVFAIL, also for domains whose NS records point to a name that resolves to a private address, for example:
After configuring private-address (and private-domain) entries I was
hoping that unbound would simply strip the private IP addresses from
responses.
However in my testing (unbound 1.4.8 and previous versions) I'm seeing
that the queries will SERVFAIL, also for domains whose NS records point
to a name that resolves to a private address, for example:
Yes this is caused by line 648 of iterator/iter_scrub.c. This is
extra-paranoid, since it can also just strip off the offending record.
I'm wondering if this is expected behaviour? Should I be seeing SERVFAIL
(note long query time) or NOERROR/NODATA with private data stripped?
If you comment out that line you get the behaviour with NOERROR/NODATA
with private data stripped.
[Ignore my typo of a blank message sent to the list if you see it.]
Yes this is caused by line 648 of iterator/iter_scrub.c. This is
extra-paranoid, since it can also just strip off the offending record.
I ran into this too, and I had to disable private-address on user-facing
instances of unbound because there are apparently enough slightly broken
domains that list additional records of RFC1918 nameservers to be annoying.
Can removing this line of code be the default behavior? I suspect you
would take issue with asking that this turn into a config toggle, which I'd
also be fine with.