cmd/dns.py

5 lines
83 B
Python

import socket
import sys
domain = sys.argv[1]
print(socket.gethostbyname(domain))