mirror of
git://git.acid.vegas/massrdns.git
synced 2024-11-25 09:06:38 +00:00
Was showing the dns server used instead of the target IP...
This commit is contained in:
parent
bb5d706b4b
commit
d95e119aac
@ -75,9 +75,9 @@ func reverseDNSLookup(ip string, server string) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(names) == 0 {
|
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 {
|
func isNetworkError(err error) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user