Resolves the cluster-facing short name for this host, trying in order:

  1. /etc/hosts lookup by a local IP (shortest alias wins);

  2. ~/.ssh/config Host entry whose Hostname is a local IP (CRLF-safe);

  3. hostname -s.

localHostLabel()

Value

Character(1) short name, or NULL if none could be determined.

Details

Useful for deriving the pane-title host prefix when the cluster knows this machine by a name different from hostname -s (e.g. mega, whose raw hostname is the node id but whose cluster alias is mega via /etc/hosts).