Add dns.py.

This commit is contained in:
voussoir 2020-06-03 20:35:33 -07:00
parent 680dd13d88
commit 8ea4a0e283

5
dns.py Normal file
View file

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