Sponsored Content
Full Discussion: how to set hostname
Operating Systems Solaris how to set hostname Post 302269214 by kumarmani on Wednesday 17th of December 2008 05:34:16 AM
Old 12-17-2008
Hostname file as in ? do you mean hostname.xxx in /etc/ ? if so then thats the file used for IP not for hostname

Can you check what’s there in /etc/nodename

If the /etc/nodename contains the same hostname as you want all u need to do is

Quote:
# hostname <hostname>
 

9 More Discussions You Might Find Interesting

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

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

3. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

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

5. Solaris

Installing Solaris x86 using jumpstart does not set the hostname for the target

Installing Solaris x86 using jumpstart does not set the hostname for the target. Any idea where do we need to specify hostname to be set for jumpstart installation. (1 Reply)
Discussion started by: hemalsid
1 Replies

6. UNIX for Dummies Questions & Answers

nLocal sendmail issues when hostname not set in official domain name

Hi, I'm having issues with sendmail when I try to send host to host mail. I've had to change the "my official domain name" line to mycompany.com to get the mails through the external spam filter, when a mail was sent with hostname.mycompany.com it was blocked. I had to change the Dj macro... (0 Replies)
Discussion started by: elcounto
0 Replies

7. Shell Programming and Scripting

Help needed with shell script to search and replace a set of strings among the set of files

Hi, I am looking for a shell script which serves the below purpose. Please find below the algorithm for the same and any help on this would be highly appreciated. 1)set of strings need to be replaced among set of files(directory may contain different types of files) 2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies

8. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

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

9. Shell Programming and Scripting

How to set timeout for dev/tcp while checking hostname and port?

I have a command to check the status of hostname and port number, echo > /dev/tcp/hostname/80 echo $? 0 success case echo > /dev/tcp/hostname/809999 I got the output ------------------- connection timed out It took almost 4 minutes to time out,,, how can I set it to 10 seconds? my... (2 Replies)
Discussion started by: sam@sam
2 Replies
arp(8c) 																   arp(8c)

Name
       arp - address resolution display and control

Syntax
       arp -a [vmunix] [kmem]
       arp [-d] hostname
       arp -f filename
       arp -s hostname ether_addr [temp] [pub] [trail]

Description
       The program displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol

       The hostname is the name of the host system for which information will be displayed or modified.

       With no flags, the program displays the current ARP entry for hostname.

Options
       -a   Displays current Address Resolution Protocol (ARP) entries from the specified name list and core files (next arguments).  If not spec-
	    ified, uses and respectively.

       -d   Deletes the entry for the host specified by name (next argument).

       -f   Reads information from the specified file (next argument) and modifies entries accordingly.  Entries in the file should be of the fol-
	    lowing form, with argument meanings as given previously:
	    hostname ether_addr [ temp ] [ pub ] [ trail ]

       -s   Creates an ARP entry for the host called hostname with the Ethernet address ether_addr.  The Ethernet address is given as six hexadec-
	    imal bytes separated by colons.  The entry will be permanent unless the word temp is given in the command.	If the word pub is  given,
	    the  entry will be published.  That is, the system will act as an ARP server, responding to requests for hostname even though the host
	    address is not its own.  The word trail indicates that trailer encapsulations may be sent to this host.

See Also
       arp(4p), ifconfig(8c)

																	   arp(8c)
All times are GMT -4. The time now is 04:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy