Wed, 2 Nov 2016 11:05 am
Source
import socket hostname = "sso.intranet.pajak.go.id" ip = socket.gethostbyname(hostname) print ip print socket.gethostbyaddr(ip)Result
D:\PROJECTS\PYTHON\belajar\violent-python>python test1.py 10.245.7.41 ('approweb.intranet.pajak.go.id', ['sso.intranet.pajak.go.id'], ['10.245.7.41'])#kantor #python #nice
Additional Info: