aboutsummaryrefslogtreecommitdiff
path: root/httpd.go
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.go')
-rw-r--r--httpd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.go b/httpd.go
index 4a13524..b1487f4 100644
--- a/httpd.go
+++ b/httpd.go
@@ -1498,7 +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)
+ rr.Name = strings.TrimRight(rr.Name, zone.Origin)
if rr.Type == dns.RecordTypePTR {
if len(rr.Name) == 0 {