The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
What hostname is a client using? mugambo UNIX for Advanced & Expert Users 1 10-10-2007 10:13 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 10:52 PM
looking up hostname dangral IP Networking 2 10-28-2003 04:56 PM
change hostname fishman2001 UNIX for Dummies Questions & Answers 9 10-21-2002 09:07 AM
Hostname bache_gowda UNIX for Dummies Questions & Answers 1 09-22-2001 04:25 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-03-2002
matt2kjones matt2kjones is offline
Registered User
  
 

Join Date: Jun 2002
Posts: 19
hostname in linux

Hi i am using the Kde graphic interface, and what to know how you set the hostname in linux, what do i click?

Ok thanx
  #2 (permalink)  
Old 07-03-2002
flounder flounder is offline
Registered User
  
 

Join Date: Jun 2002
Location: PA
Posts: 17
Not sure what version you are using but an alternative would be and typing it from the prompt:

linuxconf
  #3 (permalink)  
Old 07-04-2002
Luftwaffe Luftwaffe is offline
Registered User
  
 

Join Date: Feb 2002
Posts: 29
Hi Matt,

Just like in webhostingtalk people said. read.
  #4 (permalink)  
Old 07-04-2002
killerserv's Avatar
killerserv killerserv is offline Forum Advisor  
Unix Predator
  
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
Edit the /etc/sysconfig/network file
By editting this file you can change the HOSTNAME field to the new hostname. Simply use vi to edit the file. These changes will only take effect upon the computer reboot.
Note: On the older versions of Linux, you can change the hostname by editting the /etc/HOSTNAME file.

Another way you can do by Set the hostname using the hostname command Execute the hostname command with the new hostname as the first parameter. For example:

[root@hostname root]# hostname newhostname

This will then change the hostname immediately. However, it will not remeber the changes upon a reboot. Also, it will not change the command prompt to refresh the new hostname. To refresh the prompt, simply logout of the current session and log back in.
  #5 (permalink)  
Old 07-05-2002
noknok noknok is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 4
What's the difference between a HOSTNAME and HOSTID?

Hi All,

I am curious. What is the difference between the Hostname and Hostid?

What are the general ways of getting the hostid of a machine?
Are there ready commands?

What is the different usage of these 2?

Thanks,
noknok
  #6 (permalink)  
Old 07-05-2002
killerserv's Avatar
killerserv killerserv is offline Forum Advisor  
Unix Predator
  
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
HostID is a unique Number assigned to your computer on the network, Hostname is the name of your computer and how your network identifies your computer are by using the hostname.

To get your system hostid:

Type either /usr/bin/hostid or /usr/ucb/hostid at a command-line.
  #7 (permalink)  
Old 07-05-2002
noknok noknok is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 4
hostid commands

Hi All,

Does anyone have a compilation of the commands to obtain hostids on the different flavours of unix?

Thanks,
noknok
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:03 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0