This website requires JavaScript.
Explore
Help
Sign in
voussoir
/
cmd
Watch
1
Star
0
Fork
You've already forked cmd
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
47f04cc668
cmd
/
dns.py
6 lines
83 B
Python
Raw
Normal View
History
Unescape
Escape
Add dns.py.
2020-06-04 03:35:33 +00:00
import
socket
import
sys
domain
=
sys
.
argv
[
1
]
Use socket.gethostbyname.
2021-11-14 23:42:30 +00:00
print
(
socket
.
gethostbyname
(
domain
)
)
Reference in a new issue
Copy permalink