“python,import socket,def query_domain(domain):, try:, ip = socket.gethostbyname(domain), return f”IP address of {domain} is {ip}”, except Exception as e:, return str(e),“