hostname in linux

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers hostname in linux
# 1  
Old 07-03-2002
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  
Old 07-03-2002
Not sure what version you are using but an alternative would be and typing it from the prompt:

# 3  
Old 07-04-2002
Hi Matt,

Just like in webhostingtalk people said. read. Smilie
# 4  
Old 07-04-2002
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  
Old 07-05-2002
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?

# 6  
Old 07-05-2002
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  
Old 07-05-2002
hostid commands

Hi All,

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

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Get ip of client, not hostname

Hello i'm trying to get the ip of a telnet session. With who -u I get the hostname of the user connecting to my server, because it checks the reverse DNS. But I only want the ip. Versions: HP-UX HP Release B.11.31 Who command: Hewlett-Packard Company - 4 - HP-UX 11i Version... (2 Replies)
Discussion started by: boltpower
2 Replies

2. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

deleted (0 Replies)
Discussion started by: hce
0 Replies

3. Emergency UNIX and Linux Support

HP UX - ILO Console hostname different than Machine Hostname...

Hi All, So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says: It should say: What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies

4. SCO

Possible hostname issue?

from the hostname command I get this: scosysv.mycompany0 when I ping scosysv.mycompany0 i get 64.158.xx.xx which fails with 100% packet loss. /etc/hosts shows scosysv scosysv.mycompany0 when I ping the hostname value isn't the local IP (6 Replies)
Discussion started by: bbxguy
6 Replies

5. Red Hat

SEt two hostname in a linux server

Friends , Can I set two hostname in a Linux server at a time ? I want to give two hostname of my Linux server , is it possible to do ? Plz inform .. .. (2 Replies)
Discussion started by: shipon_97
2 Replies

6. Linux

Change Linux Hostname

Hi Good Day! I have a fedora 8 installed and I wan't to change its hostname since the default hostname is "localhost.localdomain". I wanna change it to something different. Please some one advice what to do. Do I have to change the entry in "/etc/hosts" or there's other way to do it? (7 Replies)
Discussion started by: etcpasswd
7 Replies

7. UNIX for Dummies Questions & Answers

Hostname - System Name

Hello Can anyone tell me the difference between a hostname and system name in UNIX?. Rgds D (3 Replies)
Discussion started by: deedaz
3 Replies

8. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

Hello, I am new to Solaris. I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies

9. IP Networking

looking up hostname

Using Solaris 8 (or WINXP). I am trying to look up a specific DNS hostname, but I don't know which DNS server houses that entry. How can I find the hostname? nslookup gives me the following: C:\>nslookup hostname Server: dnsserver Address: x.x.x.x *** dnsserver can't find hostname:... (2 Replies)
Discussion started by: dangral
2 Replies

10. UNIX for Dummies Questions & Answers


Hello, I am installing redhat linux 6.2 on an intel based system. Whether i want to know any naming conventions should i follow. ie Any convention to follow to name a linux machine(To give hostname). Simillarly for domain name also. Please suggest in this regard (1 Reply)
Discussion started by: bache_gowda
1 Replies
Login or Register to Ask a Question