Perform a reverse DNS lookup of the IP
(self, ip)
| 482 | return "" |
| 483 | |
| 484 | def find_reverse_dns(self, ip): |
| 485 | """ |
| 486 | Perform a reverse DNS lookup of the IP |
| 487 | """ |
| 488 | if isinstance(ip, str): |
| 489 | ip_addr = IPAddress(ip) |
| 490 | |
| 491 | google_dns = GoogleDNS.GoogleDNS() |
| 492 | |
| 493 | results = google_dns.fetch_DNS_records( |
| 494 | ip_addr.reverse_dns, google_dns.DNS_TYPES["ptr"] |
| 495 | ) |
| 496 | |
| 497 | if results is not None and len(results) > 0: |
| 498 | return results[0]["value"] |
| 499 | |
| 500 | return None |
| 501 | |
| 502 | def find_splunk_data(self, ip, partner): |
| 503 | """ |
no test coverage detected