12-15-2008
A server only has one hostname. Unless your server has domains, zones etc
10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
Pls could you help me diagnose my problem. I have a system which is a DHCP server and also the Remote Access Server. The DHCP server allocate normal address within the scope range to the LAN system. why it allocates abitrary number such as
169.254.217.90
255.255.0.0 class B address to the remote... (1 Reply)
Discussion started by: kayode
1 Replies
2. Shell Programming and Scripting
Hello..
Here is a small doubt....
I need to assign root@hostname to variable..
where hostname is the system variable...
when i give variable="root@$hostname"
its not working...
pls help..me
thanks in advance
esham (4 Replies)
Discussion started by: esham
4 Replies
3. 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
4. Red Hat
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
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. Solaris
hi....
i have sun solaris 10 server, fedora 10, and Windows Server.. i cant ping my sun solaris 10, fedora 10 and Windows Server using hostname (etc: ping winserver.bengkel2.com), but i can ping all using IPV4 and IPV6 address.. can u give some suggestion to solve my problem or some idea to... (3 Replies)
Discussion started by: izuan_7657
3 Replies
7. 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
8. AIX
Most of my Unix servers do not have access to the internet. We have a test box that I want to use to receive all root email from the other unix boxes locally. i want to then have the test box able to .forward all these emails over the internet to me. I can give the test box a dns server and it can... (10 Replies)
Discussion started by: herot
10 Replies
9. Red Hat
Greetings!
I'm testing a failover solution for NFSv4 on RHEL6 with latest updates.
My script umounts (umount -lf /share) the faulty NFS share if it sees that's hanging on the client (the NFS daemon is down on the NFS server) and it mounts the share from another healthy NFS server.
Sometimes... (4 Replies)
Discussion started by: Arsene Lupen
4 Replies
10. Shell Programming and Scripting
I know that
@food = %fruit;
Works. But how do I assign %fruit and %veggies to @food ? (2 Replies)
Discussion started by: popeye
2 Replies
HOSTNAME(7) BSD Miscellaneous Information Manual HOSTNAME(7)
NAME
hostname -- host name resolution description
DESCRIPTION
Hostnames are domains, where a domain is a hierarchical, dot-separated list of subdomains; for example, the machine monet, in the Berkeley
subdomain of the EDU subdomain of the Internet would be represented as
monet.Berkeley.EDU
(with no trailing dot).
Hostnames are often used with network client and server programs, which must generally translate the name to an address for use. (This func-
tion is generally performed by the library routine gethostbyname(3).) Hostnames are resolved by the Internet name resolver in the following
fashion.
If the name consists of a single component, i.e., contains no dot, and if the environment variable ``HOSTALIASES'' is set to the name of a
file, that file is searched for any string matching the input hostname. The file should consist of lines made up of two white-space sepa-
rated strings, the first of which is the hostname alias, and the second of which is the complete hostname to be substituted for that alias.
If a case-insensitive match is found between the hostname to be resolved and the first field of a line in the file, the substituted name is
looked up with no further processing.
If the input name ends with a trailing dot, the trailing dot is removed, and the remaining name is looked up with no further processing.
If the input name does not end with a trailing dot, it is looked up by searching through a list of domains until a match is found. The
default search list includes first the local domain, then its parent domains with at least 2 name components (longest first). For example,
in the domain CS.Berkeley.EDU, the name lithium.CChem will be checked first as lithium.CChem.CS.Berkeley.EDU and then as lithium.CChem.Berke-
ley.EDU. Lithium.CChem.EDU will not be tried, as there is only one component remaining from the local domain. The search path can be
changed from the default by a system-wide configuration file (see resolver(5)).
SEE ALSO
gethostbyname(3), resolver(5), mailaddr(7), named(8)
HISTORY
Hostname appeared in 4.2BSD.
BSD
December 30, 1993 BSD