Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,13 @@ func (b *Bot) VerifyRDNS(ipStr string) ResultStatus {
// Perform RDNS lookup
names, err := net.LookupAddr(ipStr)
if err != nil {
// Network error - allow retry, do not add to fail cache
// Distinguish network errors from NXDOMAIN (no PTR record)
if dnsErr, ok := err.(*net.DNSError); ok && dnsErr.IsNotFound {
// NXDOMAIN: PTR record does not exist - verification failed
b.fail.Add(ipStr)
return StatusFailed
}
// Network error (timeout, connection issue, etc.) - allow retry
return StatusPending
}
if len(names) == 0 {
Expand Down