standards/137173: `uname -n` incorrect behavior

Oliver Fromme olli at lurza.secnetix.de
Tue Sep 22 17:05:46 UTC 2009


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.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Unix gives you just enough rope to hang yourself --
and then a couple of more feet, just to be sure."
        -- Eric Allman


More information about the freebsd-standards mailing list