[Pdns-users] edns client subnet with netmask

Peter van Dijk peter.van.dijk at netherlabs.nl
Wed Sep 7 12:02:59 UTC 2011


Hello Paul,

On Sep 2, 2011, at 9:05 AM, Xek PL wrote:

> I'm testing edns-client-subnet feature (pdns-static-3.0-1.x86_64.rpm)
> 
> When request goes with netmask /32  (e.g. 1.2.3.0/32)- it's OK. 
> Pipe backend receive IP/32 in last field.
> RECV: Q	example.com	IN	SOA	-1	127.0.0.1	0.0.0.0	1.2.3.0/32
> 
> But when request has smaller netmask (1.2.3.0/24) , information about client subnet doesn't sent to pipe backend:
> RECV: Q	example.com	IN	SOA	-1	127.0.0.1	0.0.0.0	127.0.0.1/32

This turned out to be a bug in our edns-subnet parser (and writer). It has been fixed in revision 2258.

Thank you for your report!

Kind regards,
Peter van Dijk
Netherlabs


More information about the Pdns-users mailing list