home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: henry@zoo.toronto.edu (Henry Spencer)
-
- In article <1991Jul31.001825.16027@uunet.uu.net> fkittred@spca.bbn.com (Fletcher Kittredge) writes:
- >>The very concept of a host name -- a unique readable name for the host --
- >>is not (fully) portable. No, there is no universal way to get it.
- >
- >POSIX 1003.1 contains the uname(2) system call which returns a structure
- >holding information about the host. One of the fields of the structure
- >is nodename, the current name of the host on a communications network.
-
- However, note the fine print a few lines further down:
-
- "The inclusion of the *nodename* member in this structure does not imply
- that it is sufficient information for interfacing to communications
- networks."
-
- In other words, it's not guaranteed to be the "host name" in the sense
- of the original inquiry. Indeed, on most current implementations that
- field is too small to hold an Internet domain name of even modest length,
- assuming that an Internet domain name is what you want. On most SV-derived
- implementations, *nodename* has room for only an 8-character name. That
- won't even hold "zoo.toronto.edu" or "spca.bbn.com", never mind some of
- the atrocities that show up.
-
- I stand by my original comment. Fletcher's confusion here is an example
- of the lack of any standard for what a "host name" should be and what it
- should be good for.
- --
- Arthritic bureaucracies don't tame new | Henry Spencer @ U of Toronto Zoology
- frontiers. -Paul A. Gigot, WSJ, on NASA | henry@zoo.toronto.edu utzoo!henry
-
-
- Volume-Number: Volume 24, Number 71
-
-