IDN conversion dies on null target "." (MX, SRV) ai:claude-opus-5-5 #12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
parse()andnice()pass MX and SRV targets throughdomain_to_ascii()/domain_to_unicode()(Net::IDN::Encode). For the null target.this dies:Affected records:
example.org. IN MX 0 ._x._tcp.example.org. IN SRV 0 0 0 .A zone with such a record can't be edited with dnsvi at all.
Reproduce
Notes
3811663(on the #11 branch) worked around it for SRV only. It has beenreverted there, because it doesn't belong to #11.
1.6.2-1+issue11contains that SRV-only workaround. Null MX isstill broken there.
real Net::IDN::Encode.
Fix
Branch
fix/issue-12-null-target(9d4a9f8): two small helpersidn_ascii/idn_unicodepass.through unchanged and are used at allIDN call sites in
lib/DNS/Vi.pm. New testt/20-null-target.tchecks thenull MX and null SRV round trip. The full test suite passes, including
t/30-unicode.t.