Was showing the dns server used instead of the target IP...

This commit is contained in:
Dionysus 2023-09-21 15:32:47 -04:00
parent bb5d706b4b
commit d95e119aac
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
2 changed files with 2 additions and 2 deletions

BIN
massrdns

Binary file not shown.

View File

@ -75,9 +75,9 @@ func reverseDNSLookup(ip string, server string) (string, error) {
}
if len(names) == 0 {
return fmt.Sprintf("%s | %-18s | No PTR records", time.Now().Format("03:04:05 PM"), server), nil
return fmt.Sprintf("%s | %-18s | No PTR records", time.Now().Format("03:04:05 PM"), ip), nil
}
return fmt.Sprintf("%s | %-18s | %s", time.Now().Format("03:04:05 PM"), server, names[0]), nil
return fmt.Sprintf("%s | %-18s | %s", time.Now().Format("03:04:05 PM"), ip, names[0]), nil
}
func isNetworkError(err error) bool {