Ned Deily <n...@acm.org> added the comment: >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. ---------- nosy: +ned.deily _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10097> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com