one04 or dub04?
man uname will tell you that one04 is the network "node" name
hostname returns the hostname ... the are usually the same but must not be.
No idea why they as they are on your machine... I guess you set them so? :)
google hostname nodename and you will find lots of references explaining the
difference and where values come from.
2009/6/4 <ollie at eillo.org>
> Hello Everyone,
>> I have some questions about uname, hostname and /etc/hosts
>> on a Linux box output of the commadn uname -a is:
>> Linux one04 22.214.171.124 . . . . . . #Im not typing the whole thing
>> What exactly is dub04 and where does it come from?
>> On the same box the output of the command "hostname" is "two04"
>> In /etc/hosts only "two04" is present.
>> - The names are made up but correspond to the situation im seeing.
> - This is some kind of Hi Availability system - im not sure what.
>> In this case where could "two04" coming from and why is it different to
> what I see in uname -a?
>> Im just trying to satisfy my curiosity :)
>> Best Regards,
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug> Who we are : http://www.linux.ie/> Where we are : http://www.linux.ie/map/>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!