Detect IP changes

Harald Schneider h_schneider at
Thu Mar 20 15:35:18 CET 2003

Is there a reliable way to detect the change of a dynamic IP address ?
If I use socket.gethostbyname('my_dynip_name') I still get the old IP, even
thougt my system's DNS has been refreshed with the new name-address binding
A solution should be platform independent.

Thanks for your answers!

All the best,

More information about the Python-list mailing list