The UNIX and Linux Forums  

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 07:13 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 07:52 PM
looking up hostname dangral IP Networking 2 10-28-2003 12:56 PM
change hostname fishman2001 UNIX for Dummies Questions & Answers 9 10-21-2002 06:07 AM
Hostname bache_gowda UNIX for Dummies Questions & Answers 1 09-22-2001 01:25 PM

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-03-2002
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
Forum Sponsor
  #2 (permalink)  
Old 07-03-2002
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
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
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
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
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
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
Google UNIX.COM
Closed Thread

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:34 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0