OSDN Git Service

(split) LDP: Update draft pages (with po4a --force)
[linuxjm/LDP_man-pages.git] / draft / man7 / hostname.7
index a4e7ed3..922292d 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 1987, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
 .\"
+.\" %%%LICENSE_START(BSD_4_CLAUSE_UCB)
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -28,6 +29,7 @@
 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
+.\" %%%LICENSE_END
 .\"
 .\"     @(#)hostname.7 8.2 (Berkeley) 12/30/93
 .\" $FreeBSD: src/share/man/man7/hostname.7,v 1.7 2004/07/03 18:29:23 ru Exp $
 .\"*******************************************************************
 .TH HOSTNAME 7 2010\-11\-07 Linux "Linux Programmer's Manual"
 .SH 名前
-hostname \- hostname resolution description
+hostname \- ホスト名の名前解決の説明
 .SH 説明
-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 domain would be represented as "monet.Berkeley.EDU".
+ホスト名は、階層構造でドット区切りのサブドメインである。
+例えば、 EDU ドメインの Berkeley サブドメインのマシン monet は、
+"monet.Berkeley.EDU" と表現される。
 
-Hostnames are often used with network client and server programs, which must
-generally translate the name to an address for use.  (This task is generally
-performed by either \fBgetaddrinfo\fP(3)  or the obsolete \fBgethostbyname\fP(3).)
-Hostnames are resolved by the Internet name resolver in the following
-fashion.
+ホスト名は、ネットワーククライアントやサーバのプログラムでは一般的に
+使用され、使用する際には名前からアドレスに変換しなければならない (一般
+的にはアドレスへの変換処理は \fBgetaddrinfo\fP(3) か (廃止予定の)
+\fBgethostbyname\fP(3) で行われる)。ホスト名の解決は、
+インターネット・ネームリゾルバによって以下の方法で実行される。
 
-If the name consists of a single component, that is, contains no dot, and if
-the environment variable \fBHOSTALIASES\fP 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 separated 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.
+ホスト名がドットを含まない単一要素で構成されていて、環境変数
+\fBHOSTALIASES\fP にファイル名が設定されている場合、入力されたホスト名に
+マッチする文字列を検索するのに指定されたファイルが使用される。
+そのファイルの各行は、ホワイトスペースで区切られた文字列 2 つで
+構成され、各行の最初の文字列がホスト名のエイリアス (別名) で、
+二番目の文字列がそのエイリアスに対応する完全なホスト名である。
+解決するホスト名と一致するホスト名のエイリアス (ファイルの各行の最初の
+フィールド) が見つかれば、完全なホスト名に置き換えられ、
+それ以上の変換処理は行わずに、そのホスト名で検索処理が行われる
+(ホスト名とエイリアスの照合では大文字、小文字の違いは無視される)。
 
-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.Berkeley.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 \fBresolver\fP(5)).
+入力された名前の末尾がドットでない場合、
+マッチするものが見つかるまでドメインのリストの検索が行われる。
+デフォルトのドメインの検索リストは、先頭ローカルのドメインで、
+親ドメインが (長いものから順に) 続く (親ドメインはドット区切りで
+少なくとも 2 要素あるものだけが使用される)。
+例えば、 CS.Berkeley.EDU ドメインで、
+lithium.CChem というホスト名の場合には、
+最初に lithium.CChem.CS.Berkeley.EDU が確認され、
+次に lithium.CChem.Berkeley.EDU が確認される。
+Lithium.CChem.EDU はチェックされない。
+なぜなら、ローカルドメイン CS.Berkeley.EDU で残っているドメインは
+EDU で、これは一つしか要素がないからである。
+検索リストはシステム全体で共通の設定ファイルでデフォルト値から
+変更できる (\fBresolver\fP(5) 参照)。
 .SH 関連項目
-\fBgethostbyname\fP(3), \fBresolver\fP(5), \fBmailaddr\fP(7), \fBnamed\fP(8)
 .\" .SH HISTORY
 .\" Hostname appeared in
 .\" 4.2BSD.
+\fBgethostbyname\fP(3), \fBresolver\fP(5), \fBmailaddr\fP(7), \fBnamed\fP(8)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。