]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Add support for more bases in $GENERATE 828/head
authorcorubba <corubba@gmx.de>
Fri, 5 Aug 2022 12:09:52 +0000 (14:09 +0200)
committercorubba <corubba@gmx.de>
Fri, 5 Aug 2022 12:09:52 +0000 (14:09 +0200)
commit6537fe9b36b88659cfc99873b68cdc333c4691b5
treeb62135b41c2188018f3949b47a7ba4c19fcd13cd
parent8bd4581c8bb5572a49ddb56405b6a4cba8ef9009
Add support for more bases in $GENERATE

When reading a zone from a zonefile, the `$GENERATE` resolution now not
only supports decimal but also octal, hexadecimal and nibbles.

When using nibbles with an even width, the generated index may end with
a dot, and alone is interpreted as a absolute name. This behaviour is
consistent with bind, but may cause these records to be dropped by the
subdomain-check in `zonefile.py:398` (see also the `h.*` labels in the
testcase that are missing from the result).
dns/zonefile.py
tests/test_zone.py