Georg Brandl added the comment:
This is not a Python issue. gethostbyname() and gethostname() are just a
wrapper for the OS's functions of the same name; you'd get the same result when
coding the example in C.
--
nosy: +georg.brandl
resolution: -> invalid
status: open -> closed
___
New submission from Petr Sklenář :
version:
tried python 2.6 on rhel55
tried python-2.7-8 on fedora14
Steps to Reproduce:
1. install machine, have a fixed hostname up to mac address
1.1.1.1 = machine.something.com
2. wait a week or longer when your local dhcp server changes your IP but not
host