diff --git a/dns.py b/dns.py index 14bebd5..9dfe25b 100644 --- a/dns.py +++ b/dns.py @@ -2,4 +2,4 @@ import socket import sys domain = sys.argv[1] -print(socket.getaddrinfo(domain, 53)[0][4][0]) +print(socket.gethostbyname(domain))