You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
201 B

import socket
ip = "216.58.209.69"
try:
dominio = socket.gethostbyaddr(ip)[0]
print ("La IP %s tiene una entrada DNS: %s" %(ip, dominio))
except socket.error as msg:
print ("%s: %s" %(ip, msg))

Powered by Informatica FP.