cmd/dns.py

6 lines
83 B
Python
Raw Normal View History

2020-06-04 03:35:33 +00:00
import socket
import sys
domain = sys.argv[1]
2021-11-14 23:42:30 +00:00
print(socket.gethostbyname(domain))