URL Domain Name

Stephen Coursen coursesm at sbdhcp-4022.statenisland-ny.est.tcg.com
Fri Jan 7 14:27:43 EST 2000


On Fri, 07 Jan 2000 19:26:22 GMT, Paul E. Bible <pbible at home.com> wrote:
>Anyone know how to get the Domain Name for a given IP Address??  (In Python,
>of course)
>
>>> import socket
>>> socket.gethostbyaddr( '127.0.0.1' )
('localhost', ['localhost.localdomain'], ['127.0.0.1'])
>>>

Steve

>Thanks in advance,
>Paul
>
>



More information about the Python-list mailing list