MCPcopy Create free account
hub / github.com/adobe/Marinus / find_reverse_dns

Method find_reverse_dns

python3_cron_scripts/libs3/IPManager.py:484–500  ·  view source on GitHub ↗

Perform a reverse DNS lookup of the IP

(self, ip)

Source from the content-addressed store, hash-verified

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 """

Callers 1

extract_rdns_infoMethod · 0.95

Calls 1

fetch_DNS_recordsMethod · 0.95

Tested by

no test coverage detected