diff --git a/nameserver/zone_lookup.go b/nameserver/zone_lookup.go index 5c5aacd6..00d5aee0 100644 --- a/nameserver/zone_lookup.go +++ b/nameserver/zone_lookup.go @@ -103,9 +103,11 @@ func (zone *ZoneDb) domainLookup(target string, lfun ZoneLookupFunc) (res []Zone for _, answer := range lanswers { r, err := remoteIdent.addIPToName(answer, now) if err != nil { - zone.mx.Unlock() - Warning.Printf("[zonedb] '%s' insertion for %s failed: %s", answer, target, err) - return nil, err + if _, ok := err.(DuplicateError); !ok { + zone.mx.Unlock() + Warning.Printf("[zonedb] '%s' insertion for %s failed: %s", answer, target, err) + return nil, err + } } uniq.add(r) }