Re: >>max. length in /etc/hosts<<

From: Nick Maclaren (nmm1@cus.cam.ac.uk)
Date: 08/28/02


From: nmm1@cus.cam.ac.uk (Nick Maclaren)
Date: 28 Aug 2002 14:31:30 GMT


In article <3d6cd21c$1@epflnews.epfl.ch>,
see.URL@end.of.post (Martin Ouwehand) writes:
|> Dans l'article <3D6CA00C.80FF947A@davepimlott.demon.co.uk>,
|> Dave Pimlott <nospam@davepimlott.demon.co.uk> écrit:
|> ] Joom wrote:
|> ] >
|> ] > What's is the max. length for a hostname in /etc/hosts?
|> ]
|> ] I think the RFCs related to DNS say that the maximum length of any section
|> ] between the dots is 255 characters (IIRC...)
|>
|> it's 63 characters between the dots. 255 is the maximum length of
|> the complete name, including the trailing dot denoting the root
|> of the DNS (which is often left out). See RFC 1034 and 1035.

However, you are asking for trouble if you get anywhere near
there. Limits of both 14 and 31 characters were common until
recently and, though the former was mostly in /etc/utmp and
caused only minor trouble, some programs had trouble with long
names until very recently. Many probably still do, but I doubt
at such low limits.

Generally, going over a dozen characters between dots or about
80 in all started to provoke oddities or worse until very recently
and may still do. Despite the fact that such behaviour is a
clear bug according to the RFCs :-(

Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email: nmm1@cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679



Relevant Pages

  • Re: The Generic Heroine
    ... her into trouble again and again throughout the series-- her tragic ... I had this problem with one of my characters. ... What are her passions (besides her undying loyalty to Humanity)? ... The tragic past sounds interesting. ...
    (rec.arts.sf.composition)
  • Re: Nonprinting Characters are way too small, you might call them tiny or miniscule even.
    ... > little dots that represent spaces have shrunk by a few pixels. ... > readability of these characters. ... > I also tried setting the font smoothing feature in the Appearance ... Entourage FAQ Page: ...
    (microsoft.public.mac.office.word)
  • Re: 1 Year Later Creating a 14-Year DCU Timeline?
    ... > That's not the trouble. ... > but six months for OTHER of the characters. ... Say Robin is in an adventure that takes ... the creative teams on different titles. ...
    (rec.arts.comics.dc.universe)
  • Re: Undesired dot below characters
    ... Dots below characters could indicate that they're ... I get a spurious dot below some characters in a table. ... > be associated with an error message that prints on the bottom of every ... Main Document Only" at the bottom of every page when I print." ...
    (microsoft.public.word.application.errors)
  • Re: Noob File IO question
    ... trouble with File IO http://www.openwatcom.org/index.php/Download ... commented out the Command line ... When I debug this and watch the input buffer ... characters and my program thinks they are 8 bit. ...
    (comp.lang.c)

Loading