Jan-15-2020, 05:12 PM
So, do a reverse DNS lookup where you have the IP and want the hostname?
import socket info = socket.gethostbyaddr("8.8.4.4") print(info[0])
Output:dns.google
Is that what you wanted?