Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-03-2006, 11:09 AM   #1
LQ Newbie
Registered: Oct 2006
Location: Virginia
Posts: 2

Rep: Reputation: 0
Static or dynamic hostids?

When we enter "hostid" on the system, we get back an ID. Howewer, this ID seems to change periodically! I thought the hostid was set and remained forever. Kind of like a serial number, unique to one item and associated to it forever. I have more of a background in UNIX and thought it would act the same way in Linux. Have I missed something? Thank you!
Old 10-03-2006, 01:47 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910

and welcome to LQ!

`hostid': Print numeric host identifier.

   `hostid' prints the numeric identifier of the current host in
hexadecimal.  This command accepts no arguments.  The only options are
`--help' and `--version'.  *Note Common options::.

   For example, here's what it prints on one system I use:

     $ hostid

   On that system, the 32-bit quantity happens to be closely related to
the system's Internet address, but that isn't always the case.

   An exit status of zero indicates success, and a nonzero value
indicates failure.
That's from info coreutils hostid. Doesn't sound like they are static
if they're tied to IPs.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic IP to Static Temujin_12 *BSD 2 06-10-2005 05:58 PM
Static vs Dynamic Big Al Linux - Networking 2 12-08-2003 04:10 PM
NS with static or dynamic IP cijunet Linux - Networking 3 05-09-2003 12:04 AM
Changing from static IP to dynamic one cijunet Linux - Networking 1 04-10-2003 11:07 PM
Dynamic DHCP or static IP joeljensen Linux - Networking 7 04-01-2003 02:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration