[Pdns-users] axfr in powerdns 2.9.12 (debian package)

Norbert Sendetzky norbert at linuxnetworks.de
Mon Nov 10 16:35:29 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 10 November 2003 15:11, Ivo Vastert wrote:
> > When I supply a ip address with the option allow-axfr-ips=
> > It allows every ip to do axfr transfers.
>
> Already try'd it,
> Doesn't work :(

d_mask=~(0xFFFFFFFF>>bits); in iputils.hh doesn't work for 32 bits. It 
seems, the processor does something like bits=bits%32 before shifting 
:-(

The attached diff fixes this.
If you don't want to recompile your software, use <ipaddr>/31. This 
works and allows only one more ip address.


Norbert

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj+vvlEACgkQxMLs5v5/7eA4dQCfY4ixpTTQQaL0YAZMaw5smt9N
1ScAn2LG/GTdvRVVHB736LNNC7EMsCfc
=Kmy8
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netmask_match.diff
Type: text/x-diff
Size: 436 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20031110/c975fdad/attachment-0001.diff>


More information about the Pdns-users mailing list