public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@redhat.com>
To: Andreas Steinmetz <ast@domdv.de>
Cc: "Randy.Dunlap" <rddunlap@osdl.org>,
	Jan Engelhardt <jengelh@linux01.gwdg.de>,
	linux-kernel@vger.kernel.org
Subject: Re: host name length
Date: Mon, 06 Dec 2004 11:25:04 -0800	[thread overview]
Message-ID: <41B4B210.1040105@redhat.com> (raw)
In-Reply-To: <41B49773.1010006@domdv.de>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Steinmetz wrote:

> 63 characters per label (=hostname) as to:

A "label" is only a part of the fqdn:

<domain> ::= <subdomain> | " "

<subdomain> ::= <label> | <subdomain> "." <label>

<label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]


Yes, each label can only have 63 bytes, but the entire fqdn can be
longer, much longer.  And the hostname stored with sethostname() should
be the fqdn of the machine, not just one lalbel (in DNS speak).

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBtLIQ2ijCOnn/RHQRAiqhAJsH2+QD8oI8O+/tRmg/+uHXlGAAIACdF9D1
qh0Lqh7/OCp20LI34eBPE+I=
=DQ59
-----END PGP SIGNATURE-----

  reply	other threads:[~2004-12-06 19:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-12 20:16 host name length Ulrich Drepper
2004-12-04  0:05 ` Randy.Dunlap
2004-12-05 19:47   ` Ulrich Drepper
2004-12-06  8:35   ` Jan Engelhardt
2004-12-06 16:45     ` Randy.Dunlap
2004-12-06 17:31       ` Andreas Steinmetz
2004-12-06 19:25         ` Ulrich Drepper [this message]
2004-12-06 19:28           ` Andreas Steinmetz
2004-12-08 20:29             ` Randy.Dunlap
2004-12-09  0:35               ` Ulrich Drepper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41B4B210.1040105@redhat.com \
    --to=drepper@redhat.com \
    --cc=ast@domdv.de \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rddunlap@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox