how to resolve name from Python 1.5.*?

Roman Suzi rnd at onego.ru
Fri May 4 09:23:14 EDT 2001


Hello!

How do I get a list of IP-address(es) corresponding to a given name
 from Python 1.5?

(i.e. I need the equivalent of 

$ nslookup name
...
...
Address: IP-address

)

Or is it simpler just search for info in
popen("nslookup %s"%name).read()
?

Sincerely yours, Roman A.Suzi
-- 
 - Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
 






More information about the Python-list mailing list