Next Previous Up Top Contents Index

10.3.1 Basic Internet address protocol

host-name

Open generic function

host-name internet-address => name 

Returns an instance of <string> containing a symbolic host name. The internet-address argument must be an instance of <internet-address>.
Usually the name returned is the canonical host name. Note, however, that the implementation is conservative about making DNS calls. Suppose that the <internet-address> instance was created with the name: keyword and no other information. If the application has not made any other requests that would require a DNS call, such as to host-address or aliases (see below), the name that this function returns will be the one specified with the name: keyword, regardless of whether that is the canonical name or not.

System and I/O Reference - 31 MAR 2000

Next Previous Up Top Contents Index