RRsetDeleteRR must set TTL to 0 otherwise BIND rejects with a "FORMERR" error when attempting to delete.

The file named/update.c.html in the BIND project tests the TTL immediately after seeing that "update_class == dns_rdataclass_none".  See also http://www.fiveanddime.net/bind-9/bind-9.3.1/bin/named/update.c.html and search for the above conditional.
This commit is contained in:
Dusty Wilson 2011-12-06 02:59:28 -08:00
parent c9bb2e0617
commit 564a0fe2e0
1 changed files with 1 additions and 0 deletions

View File

@ -176,5 +176,6 @@ func (u *Update) RRsetDeleteRR(rr []RR) {
for i, r := range rr {
u.Ns[i] = r
u.Ns[i].Header().Class = ClassNONE
u.Ns[i].Header().Ttl = 0
}
}