cmd/dns.py

6 lines
94 B
Python
Raw Normal View History

2020-06-04 03:35:33 +00:00
import socket
import sys
domain = sys.argv[1]
print(socket.getaddrinfo(domain, 53)[0][4][0])