Uname -v incorrect

Erik Trulsson ertr1013 at student.uu.se
Sat Oct 11 13:59:13 PDT 2003


On Sat, Oct 11, 2003 at 03:45:14PM -0500, Charles Howse wrote:
> Hi,
> I recently changed the hostname of one of my machines in /etc/rc.conf.
> Now my uname -v output is still showing the old name.
> I've run uname -a here so you can see the complete output, the -v stuff
> comes after the '#0:'
> Will this change with a rebuild?
> 
> [root at larry ~]# uname -a
> FreeBSD larry.howse.homeunix.net 4.8-RELEASE-p13 FreeBSD 4.8-RELEASE-p13
> #0: Wed Oct  8 09:38:04 CDT 2003
> root at larry.howse.no-ip.org:/usr/obj/usr/src/sys/CUSTOM  i386

The hostname displayed by 'uname -v' is not the name of the host the
kernel is running on.
It is the name of the host the kernel was built on.
A rebuild will indeed change the hostname displayed by 'uname -v'.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013 at student.uu.se


More information about the freebsd-questions mailing list