From 564a0fe2e03ed4bc7a40aed6a4d3209672c7def3 Mon Sep 17 00:00:00 2001 From: Dusty Wilson Date: Tue, 6 Dec 2011 02:59:28 -0800 Subject: [PATCH] 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. --- update.go | 1 + 1 file changed, 1 insertion(+) diff --git a/update.go b/update.go index 588c478f..c4b0c8a2 100644 --- a/update.go +++ b/update.go @@ -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 } }