gui-host-lookup/generic/ip_lookup.py
2024-08-14 15:34:48 +02:00

6 lines
97 B
Python

import socket
def get_hostname(IP):
hostname = socket.gethostbyaddr(IP)
return hostname