6 lines
97 B
Python
6 lines
97 B
Python
import socket
|
|
|
|
def get_hostname(IP):
|
|
hostname = socket.gethostbyaddr(IP)
|
|
return hostname
|