05-27-2009
You can only set one hostname, as this should be an unique identifier. If you want to reach your server by more than one name, use a Name Service (DNS, NIS, /etc/hosts) and/or assign more than one IP address.
10 More Discussions You Might Find Interesting
1. Linux
Hi,
I have a desktop on which linux is installed. It is connected to office LAN. I am able to send mails(using the 'mail' command) to anybody who is connected to the linux machine. But I am not able to send mails to internet IDs. Please inform, what do I have to do to enable mailing to internet... (3 Replies)
Discussion started by: abhishek_ss
3 Replies
2. UNIX for Advanced & Expert Users
what command do you use to change a unix server name.
i've tried hostname, but when the unix server is rebooted, it reverts back to the old server name.
regards
venhart (3 Replies)
Discussion started by: venhart
3 Replies
3. Solaris
Hi All,
Is there any option where in I can assign the two hostname to single system.
Thanks (6 Replies)
Discussion started by: kumarmani
6 Replies
4. Solaris
all of a sudden i am not able to get hostname of sparc server. all the settings are proper in hostname file.can anyone help me on this (1 Reply)
Discussion started by: grrajeish
1 Replies
5. UNIX for Dummies Questions & Answers
i read that if i issue :
cat /etc/sysconfig/network > textfile
i will be able to determine the hostname of the server that my linux workstation is connected to.
but there are several other lines outputted that i do not need. i just need the hostname part.
is there any other unix... (2 Replies)
Discussion started by: mbaste2
2 Replies
6. UNIX for Dummies Questions & Answers
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
7. Solaris
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
8. Solaris
Hi,
We have one server originally named <SERVERA>.
Now we plan to put another network card & add another hostname <SERVERB>. Later, we will need to change hostname from <SERVERB> to <SERVERC>.
I know that we need to plumb a new ip & add to /etc/hosts & /etc/hostname.<interface>. Is there... (2 Replies)
Discussion started by: beginningDBA
2 Replies
9. UNIX for Dummies Questions & Answers
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
10. Shell Programming and Scripting
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
LEARN ABOUT OSF1
wnnhosts
wnnhosts(4) File Formats wnnhosts(4)
NAME
wnnhosts - Wnn6 Kana-Kanji conversion server/dictionary lookup server access control file
SYNOPSIS
/etc/lib/locale/ja/wnn/wnnhosts
DESCRIPTION
wnnhosts specifies users who can use the Wnn6 Kana-Kanji conversion server (jserver) and the Kana-Kanji conversion server that can be con-
nected to the Wnn6 dictionary lookup server (wnnds).
The following is the format of the access control file. Place a space character before "{".
jserver ja <Kana-Kanji conversion server> {
<access control data>
:
}
wnnds ja <dictionary lookup server> {
<access data>
:
}
<Kana-Kanji conversion server> is specified in the following format.
hostname The Kana-Kanji conversion server that uses the well-known port number(22273) on host hostname.
hostname/port_no The Kana-Kanji conversion server that uses port_no as port number on host hostname.
<dictionary lookup server> is specified in the following format.
hostname The dictionary lookup server that uses the well-known port number(26208) on host hostname.
hostname/port_no The dictionary lookup server that uses port_no as port number on host hostname.
<access control data> for jserver is specified in the following format.
hostname All the users on the host can use data.
hostname:username_list username_list contains a list of username separated with ",". Users listed in the list on this host can use data.
@username This user can use data from any host.
<access control data> for wnnds is specified in the following format.
hostname jserver on this host can be connected.
jserver and wnnds use the access control information with the host name and port number matched.
Lines beginning with ";" are comments.
EXAMPLES
Example 1:
jserver ja_JP hostA {
;hostC:usr1,usr2,usr3
hostA:usr1,usr4
hostB
hostC:usr5
@usrA
;usrB
}
wnnds ja_JP hostA {
hostA
hostD
}
jserver ja_JP hostA/22273 {
hostB
hostE
@usrA
}
wnnds ja_JP hostA/22385 {
hostA
hostD
}
SEE ALSO
jserver(1M), wnnaccess(1M), wnnds(1M)
SunOS 5.10 10 Jan 2003 wnnhosts(4)