OSDN Git Service

LDP: Update drafts based on LDP v3.40.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man7 / hostname.7
1 .\" Copyright (c) 1987, 1990, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)hostname.7  8.2 (Berkeley) 12/30/93
33 .\" $FreeBSD: src/share/man/man7/hostname.7,v 1.7 2004/07/03 18:29:23 ru Exp $
34 .\"
35 .\" 2008-06-11, mtk, Taken from FreeBSD 6.2 and modified for Linux.
36 .\"
37 .\"*******************************************************************
38 .\"
39 .\" This file was generated with po4a. Translate the source file.
40 .\"
41 .\"*******************************************************************
42 .TH HOSTNAME 7 2010\-11\-07 Linux "Linux Programmer's Manual"
43 .SH 名前
44 hostname \- hostname resolution description
45 .SH 説明
46 Hostnames are domains, where a domain is a hierarchical, dot\-separated list
47 of subdomains; for example, the machine monet, in the Berkeley subdomain of
48 the EDU domain would be represented as "monet.Berkeley.EDU".
49
50 Hostnames are often used with network client and server programs, which must
51 generally translate the name to an address for use.  (This task is generally
52 performed by either \fBgetaddrinfo\fP(3)  or the obsolete \fBgethostbyname\fP(3).)
53 Hostnames are resolved by the Internet name resolver in the following
54 fashion.
55
56 If the name consists of a single component, that is, contains no dot, and if
57 the environment variable \fBHOSTALIASES\fP is set to the name of a file, that
58 file is searched for any string matching the input hostname.  The file
59 should consist of lines made up of two white\-space separated strings, the
60 first of which is the hostname alias, and the second of which is the
61 complete hostname to be substituted for that alias.  If a case\-insensitive
62 match is found between the hostname to be resolved and the first field of a
63 line in the file, the substituted name is looked up with no further
64 processing.
65
66 If the input name ends with a trailing dot, the trailing dot is removed, and
67 the remaining name is looked up with no further processing.
68
69 If the input name does not end with a trailing dot, it is looked up by
70 searching through a list of domains until a match is found.  The default
71 search list includes first the local domain, then its parent domains with at
72 least 2 name components (longest first).  For example, in the domain
73 CS.Berkeley.EDU, the name lithium.CChem will be checked first as
74 lithium.CChem.CS.Berkeley.EDU and then as lithium.CChem.Berkeley.EDU.
75 Lithium.CChem.EDU will not be tried, as there is only one component
76 remaining from the local domain.  The search path can be changed from the
77 default by a system\-wide configuration file (see \fBresolver\fP(5)).
78 .SH 関連項目
79 .\" .SH HISTORY
80 .\" Hostname appeared in
81 .\" 4.2BSD.
82 \fBgethostbyname\fP(3), \fBresolver\fP(5), \fBmailaddr\fP(7), \fBnamed\fP(8)
83 .SH この文書について
84 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
85 である。プロジェクトの説明とバグ報告に関する情報は
86 http://www.kernel.org/doc/man\-pages/ に書かれている。