Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support HP UX - ILO Console hostname different than Machine Hostname... Post 302550360 by dude2cool on Thursday 25th of August 2011 12:46:19 PM
Old 08-25-2011
Code:
man hostname

From man page above:

Quote:
change lasts only until the system is rebooted. To change the host
name permanently, run the special initialization script
/sbin/set_parms
This User Gave Thanks to dude2cool For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Hostname

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

2. 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

3. 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

4. Solaris

Access Solaris machine over http by hostname

Hi all, I need to be able to connect to the web server enabled on my solaris box by hostname e.g. http://<hostname_of_solaris_box>. How can I achieve this? I am able to access the web server via the IP of the solaris box but not the hostname. Any help or pointers would be appreciated. ... (1 Reply)
Discussion started by: dpillay
1 Replies

5. Red Hat

Change hostname

Hello, I would like to change the hostname on a Linux server (RHEL4). I try different methods in vain : - by using hostname command - by changing /etc/hosts and /etc/hostname But after restarting server, the old hostname re-appears... :confused: And the file ./proc/sys/kernel/hostname... (3 Replies)
Discussion started by: madmat
3 Replies

6. Linux

Findout iLO type installed in a machine

I have to write Linux script to findout what kind of ilo is been installed in the given ip address either ilo/LO100 or no device found. IP address will be given in the command line of the script. -> With out log on to the ip address, should get the ilo type installed in that machine. 1. I... (1 Reply)
Discussion started by: skmdu
1 Replies

7. SuSE

HOSTNAME not being applied

I have set up my hostname in dhcp and my dns server, but I cannot get the client to pick up the hostname that is listed for the ip. IE. 10.32.23.4 hostname should be client4 Anyone know why? It was working before and just stopped working (1 Reply)
Discussion started by: 3junior
1 Replies

8. UNIX for Dummies Questions & Answers

How do I know my user@hostname ?

(8 Replies)
Discussion started by: wojeezy
8 Replies

9. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

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

10. UNIX for Beginners Questions & Answers

How to perform kickstart installation with virtual floppy image from ILO console?

HI All, I have created a kickstart file and converted into .img with below procedure to mount this as a floppy image file to supply the kickstart file during the installation time. But installation failing with unknown ks file location and other error messages. 1. Build an empty floppy... (3 Replies)
Discussion started by: venumutyalu
3 Replies
hostname(1)						      General Commands Manual						       hostname(1)

NAME
hostname - set or display name of current host system SYNOPSIS
[name_of_host] DESCRIPTION
The command displays the name of the current host, as given in the system call (see gethostname(2)). Users who have appropriate privileges can set the hostname by giving the argument name_of_host; this is usually done in the startup script The name_of_host argument is restricted to characters as defined in The system might be known by other names if networking products are supported. See the node manager documentation supplied with your sys- tem. WARNINGS
If the name_of_host argument is specified, the resulting host name change lasts only until the system is rebooted. To change the host name permanently, run the special initialization script (see Many types of networking services are supported on HP-UX, each of which uses a separately assigned system name and naming convention. To ensure predictable system behavior, it is essential that system names (also called host names or node names) be assigned in such a manner that they do not create conflicts when the various networking facilities interact with each other. The system does not rely on a single system name in a specific location, partly because different services use dissimilar name formats as explained below. The and commands assign system names as follows: +--------------+---------------+----------------+---------------------------+ |Node Name | Command | name Format | Used By | +--------------+---------------+----------------+---------------------------+ |Internet name | hostname name | sys[.x.y.z...] | ARPA and NFS Services | |UUCP name | uname -S name | sys | uucp and related programs | +--------------+--------------+---------------+-----------------------+--|Node-+-Name-------|Command-------+ |name Format |Used By | +--------------+--------------+---------------+-----------------------+ |Internet name |hostname name |sys[.x.y.z...] |ARPA and NFS Ser- vices | |UUCP name |uname -S name |sys |uucp, related programs | +--------------+--------------+---------------+-------- --------------+ where sys represents the assigned system name. It is recommended that sys be identical for all commands and locations and that the optional follow the specified notation for the particular ARPA/NFS environment. Internet names are also frequently called host names or domain names (which are different from NFS domain names). Refer to hostname(5) for more information about Internet naming conventions. Whenever the system name is changed in any file or by the use of any of the above commands, it should also be changed in all other loca- tions as well. Other files or commands in addition to those above (such as if used to circumvent for example) may contain or alter system names. To ensure correct operation, they should also use the same system name. System names are normally assigned by the script at start-up, and should not be altered elsewhere. Setting a hostname of more than 64 bytes is possible only with the appropriate configuration options enabled. It is strongly recommended that all related documentation be completely understood before setting a larger hostname. A hostname larger than 64 bytes can cause anoma- lous or incorrect behavior in applications which use the command or the system function to access the name. AUTHOR
was developed by the University of California, Berkeley. SEE ALSO
uname(1), gethostname(2), sethostname(2), uname(2), hostname(5), nodehostnamesize(5). hostname(1)
All times are GMT -4. The time now is 12:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy