Add dns.py.
This commit is contained in:
parent
680dd13d88
commit
8ea4a0e283
1 changed files with 5 additions and 0 deletions
5
dns.py
Normal file
5
dns.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
import socket
|
||||
import sys
|
||||
domain = sys.argv[1]
|
||||
|
||||
print(socket.getaddrinfo(domain, 53)[0][4][0])
|
Loading…
Reference in a new issue