tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: hostname rules
@ 1995-05-10 15:06 Cary Talbot
  0 siblings, 0 replies; only message in thread
From: Cary Talbot @ 1995-05-10 15:06 UTC (permalink / raw)
  To: tru64-unix-managers

Thanks for the many prompt replies!

The original post asked if hostnames were restricted to 8 characters

Answer:
The file /usr/include/sys/param.h contains the following line:
#define MAXHOSTNAMELEN  64      /* maximum hostname size */

Thus, the maximum length is 64.  Art Stine (abstine@visix.com) 
pointed out that it used to be that older systems required 
the name to fit into 24 bytes but that is no longer the case.

Achim Bohnet (ach@rosat.mpe-garching.mpg.de) provided the following info:

>1) OSF/1: there is a parameter MAXHOSTNAMELEN or something like that
>   defined as 64 that determines the allowed length of the hostname.
>2) 1) does not mean that all tools also allow this (E.g. Polycenter
>  Performance Manager has problems with hostnames longer that 31 chars
>  (32 with \0).
>3) DNS (bind) allows domainnames up to 255.
>4) HP: We use a HP's as a remote print server. The HP lp daemon has
>   problems if the hostname has dot(s) in it. Grr...
>5) lpd: The option -m send you mail when your print job has finished.
>   Now the problems: If you use a hostname not containing the domain
>   (see 4) and you use a print server outside your domain the mail
>   will bounce because the host is not known or in a worse case it's
>   send to the wrong host and/or user.
>
>If possible I would choose a hostname that contains the full domainname.

Oh, and Kathy Warnaar pointed out that while names can be longer than
8 characters, short names are a blessing for typing's sake.

Thanks for all that replied:

David Warren <warren@atmos.washington.edu>
Terje Sten Bjerkseth <tsb@admintec.no>
Fred Dulles <dulles@s2.ima.umn.edu>
Gerolf Granse <granse@iws.fhg.de>
Art Stine <abstine@visix.com>
Achim Bohnet <ach@rosat.mpe-garching.mpg.de>
Kathy Warnaar <kwarnaar@omega.rtpnc.epa.gov>
Michael Matthews <matthewm@sgate.com>
Sheila ??? <SYSTEM_SF@unode2.nswc.navy.mil>


_____________________________________________________________________
Cary A. Talbot, Hydraulic Engineer         US Army Corps of Engineers
ATTN: CEWES-HH-G                         Waterways Experiment Station
3909 Halls Ferry Road
Vicksburg, Mississippi 39180
phone:(601)634-4286   fax:(601)634-4208  email:talbot@hl.wes.army.mil

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-05-10 15:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-05-10 15:06 SUMMARY: hostname rules Cary Talbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox