]> git.ipfire.org Git - thirdparty/bind9.git/commit
nsupdate does not handle zero length RDATA well
authorMark Andrews <marka@isc.org>
Tue, 31 Mar 2026 01:26:42 +0000 (12:26 +1100)
committerMark Andrews (GitLab job 7168614) <marka@isc.org>
Thu, 9 Apr 2026 00:34:20 +0000 (00:34 +0000)
commit86fd564373bc8345827261df07295d95180394eb
treeb5fbce563a1f780fe29f2669dd735546c6f075c1
parent8c45bb77b0b98c052ac3feed33ba2d35e7d4e9da
nsupdate does not handle zero length RDATA well

Nsupdate does not distinguish between a non-existing RDATA field
and an empty RDATA field when determining which action is desired
when the RDATA field is empty. This only affects a few data types,
like APL, which allow an empty RDATA field.  Document a workaround
of using the '\# 0' form for entering these specific records. e.g.

    # delete the APL RRset
    update delete IN APL
    # delete the APL record with a zero length rdata
    update delete IN APL \# 0

(cherry picked from commit f45762a5beea8dd07604e49ba225bebe09f9f970)
bin/nsupdate/nsupdate.rst