On Mon, Jan 16, 2006 at 01:46:14PM -0700, LaMont Jones wrote:
> RFC952: (excerpt)
> 
> GRAMMATICAL HOST TABLE SPECIFICATION
>    A. Parsing grammar
>       <official hostname> ::= <hname>
>    B. Lexical grammar
>       <hname> ::= <name>*["."<name>]
>       <name>  ::= <let>[*[<let-or-digit-or-hyphen>]<let-or-digit>]
> 
> RFC1123:
>    2.1  Host Names and Numbers
> 
>       The syntax of a legal Internet host name was specified in RFC-952
>       [DNS:4].  One aspect of host name syntax is hereby changed: the
>       restriction on the first character is relaxed to allow either a
>       letter or a digit.  Host software MUST support this more liberal
>       syntax.
> 
> The patch below changes check_name so that it actually implements the
> RFCs.  Admittedly, it doesn't check on maximum label lengths...

I disagree with this patch. I believe the kernel hostname variable (the
one that hostname(1) sets, and that {get,set}hostname(2) query and set)
should not be a FQDN. Instead the FQDN should be looked up using
gethostbyname(3) (which will in turn query /etc/hosts or a nameserver).

Does someone else have a reason why this is not the case?

-- 
gram


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to