From owner-freebsd-standards@FreeBSD.ORG Tue Sep 22 21:34:42 2009 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 914A5106566B; Tue, 22 Sep 2009 21:34:42 +0000 (UTC) (envelope-from andy.kosela@gmail.com) Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mx1.freebsd.org (Postfix) with ESMTP id BF0438FC24; Tue, 22 Sep 2009 21:34:41 +0000 (UTC) Received: by fxm22 with SMTP id 22so141673fxm.36 for ; Tue, 22 Sep 2009 14:34:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:reply-to:sender:to :subject:message-id:references:in-reply-to:user-agent:mime-version :content-type:content-transfer-encoding; bh=M9mNhXbNo4yODxA1GIQc2/ib5W+bbh2Vzr7y5GaIdW8=; b=J2gfR2DzlmocRWjkmj6mQiMcI9zFWQZCfna8yHZ2cYx2idOO5y0y9fApvo3c7Qr8Ka 0j9twvwwThN/RqSHlZ4Pzp6gUCC2WlgyJgT6G4TGrSbGfuT/hCS4tMn8VC3m6SC7rVWq lFEvHl0+C0jhVAdZAusvQxWL5/nMPyX2l7Epg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:reply-to:sender:to:subject:message-id:references :in-reply-to:user-agent:mime-version:content-type :content-transfer-encoding; b=BUZzY5t2LATu66J0Mkfqb2EkYOBFr/pjG3Z9wFPVqUB4UmuaKQIZrLI/+VeXgSaobb Mdn1D8Sy6f7duqiU2KVDMwveLStG+pRBhAKE0uFQST/PqfJl09HsE7elvybWqcaSUaFl f6JLqjGEABrSkLDC93N3E/szoIS4vtJsRh/FM= Received: by 10.86.17.4 with SMTP id 4mr1340406fgq.13.1253653985434; Tue, 22 Sep 2009 14:13:05 -0700 (PDT) Received: from zork.lan (nat2-131.ghnet.pl [91.150.223.131]) by mx.google.com with ESMTPS id 3sm9158fge.9.2009.09.22.14.13.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 22 Sep 2009 14:13:04 -0700 (PDT) Date: Tue, 22 Sep 2009 23:08:26 +0200 From: Andy Kosela Sender: Andy Kosela To: olli@lurza.secnetix.de, jilles@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG, bug-followup@FreeBSD.ORG Message-ID: <4ab93cca.vZr1+IV6M72iTd1N%akosela@andykosela.com> References: <200909221705.n8MH5NEh064549@lurza.secnetix.de> In-Reply-To: <200909221705.n8MH5NEh064549@lurza.secnetix.de> User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: Re: standards/137173: `uname -n` incorrect behavior X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: akosela@andykosela.com List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Sep 2009 21:34:42 -0000 Oliver Fromme wrote: > Just for the record: > The claim that Solaris doesn't print the FQDN is incorrect. > Solaris prints whatever the admin has configured in /etc/nodename. > If the admin has configured the FQDN, "uname -n" will print the FQDN. > AFAIK it is the same for HP-UX. > > So, FreeBSD really behaves the same as Solaris and HP-UX: > If you configure the hostname to be the FQDN, "uname -n" will print it, > just like the "hostname" command. FYI # uname -a HP-UX vital15 B.11.23 U ia64 1058748580 unlimited-user license # uname -n vital15 # hostname vital15.testdrive.hp.com so NODENAME != HOSTNAME The startup variable NODENAME is the UUCP name which is returned by uname -n, while the HOSTNAME variable sets the networking (ARPA, NFS, etc) name, which can be 64 chars long (see /usr/include/sys/param.h for MAXHOSTNAMELEN). HOSTNAME can be much longer than 8 characters BUT only if you define an 8-character or less NODENAME in the /etc/rc.config.d/netconf file. --Andy