cmd/dns.py
2020-06-03 20:35:33 -07:00

5 lines
94 B
Python

import socket
import sys
domain = sys.argv[1]
print(socket.getaddrinfo(domain, 53)[0][4][0])