Message118706
>It's incorrect to use DNS names when implementing platform.uname():
>on POSIX, uname() *also* does not return the DNS name. If you want
>some API to return the DNS name of the computer, you need a different
>function (e.g. socket.getfqdn()).
Even more importantly, the computer may have (and these days, usually has) more than one network interface and/or multiple IP addresses bound to a single interface. Each IP address usually has a unique DNS name, but not necessarily. In general, there can be no one-to-one mapping of platform name to DNS name. |
|
Date |
User |
Action |
Args |
2010-10-14 18:14:13 | ned.deily | set | recipients:
+ ned.deily, lemburg, loewis |
2010-10-14 18:14:12 | ned.deily | set | messageid: <1287080052.91.0.813293888215.issue10097@psf.upfronthosting.co.za> |
2010-10-14 18:14:11 | ned.deily | link | issue10097 messages |
2010-10-14 18:14:11 | ned.deily | create | |
|