summaryrefslogtreecommitdiff
path: root/httpd.go
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.go')
-rw-r--r--httpd.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/httpd.go b/httpd.go
index 09ac8c8..6a4c2bb 100644
--- a/httpd.go
+++ b/httpd.go
@@ -1498,6 +1498,7 @@ func (srv *Server) apiZonedRRDelete(epr *libhttp.EndpointRequest) (resbody []byt
}
rr.Name = strings.TrimRight(rr.Name, ".")
+ rr.Name = strings.TrimRight(rr.Name, zone.Name)
if rr.Type == dns.RecordTypePTR {
if len(rr.Name) == 0 {