gui-host-lookup/generic/domain_lookup.py

6 lines
107 B
Python
Raw Normal View History

import socket
def get_ip_address(domain):
hostname = socket.gethostbyname(domain)
return hostname