Man page - hostname(7)

Packages contains this manual

Available languages:

en fr es ja ru ro de

Manual

HOSTNAME

名 前
説 明
関 連 項 目
こ の 文 書 に つ い て

名 前

hostname - ホ ス ト 名 の 名 前 解 決 の 説 明

説 明

ホ ス ト 名 は 、 階 層 構 造 で ド ッ ト 区 切 り の サ ブ ド メ イ ン で あ る 。 例 え ば 、 "com" ド メ イ ン の "example" サ ブ ド メ イ ン の マ シ ン "monet" は 、 "monet.example.com" と 表 現 さ れ る 。

Each element of the hostname must be from 1 to 63 characters long and the entire hostname, including the dots, can be at most 253 characters long. Valid characters for hostnames are ASCII (7) letters from a to z , the digits from 0 to 9 , and the hyphen (-). A hostname may not start with a hyphen.

ホ ス ト 名 は 、 ネ ッ ト ワ ー ク ク ラ イ ア ン ト や サ ー バ の プ ロ グ ラ ム で は 一 般 的 に 使 用 さ れ 、 使 用 す る 際 に は 名 前 か ら ア ド レ ス に 変 換 し な け れ ば な ら な い (一 般 的 に は ア ド レ ス へ の 変 換 処 理 は getaddrinfo (3) か (廃 止 予 定 の ) gethostbyname (3) で 行 わ れ る )。

Hostnames are resolved by the NSS framework in glibc according to the hosts configuration in nsswitch.conf . The DNS-based name resolver (in the dns NSS service module) resolves them in the following fashion.

ホ ス ト 名 が ド ッ ト を 含 ま な い 単 一 要 素 で 構 成 さ れ て い て 、 環 境 変 数 HOSTALIASES に フ ァ イ ル 名 が 設 定 さ れ て い る 場 合 、 入 力 さ れ た ホ ス ト 名 に マ ッ チ す る 文 字 列 を 検 索 す る の に 指 定 さ れ た フ ァ イ ル が 使 用 さ れ る 。 そ の フ ァ イ ル の 各 行 は 、 ホ ワ イ ト ス ペ ー ス で 区 切 ら れ た 文 字 列 2 つ で 構 成 さ れ 、 各 行 の 最 初 の 文 字 列 が ホ ス ト 名 の エ イ リ ア ス (別 名 ) で 、 二 番 目 の 文 字 列 が そ の エ イ リ ア ス に 対 応 す る 完 全 な ホ ス ト 名 で あ る 。 解 決 す る ホ ス ト 名 と 一 致 す る ホ ス ト 名 の エ イ リ ア ス (フ ァ イ ル の 各 行 の 最 初 の フ ィ ー ル ド ) が 見 つ か れ ば 、 完 全 な ホ ス ト 名 に 置 き 換 え ら れ 、 そ れ 以 上 の 変 換 処 理 は 行 わ ず に 、 そ の ホ ス ト 名 で 検 索 処 理 が 行 わ れ る (ホ ス ト 名 と エ イ リ ア ス の 照 合 で は 大 文 字 、 小 文 字 の 違 い は 無 視 さ れ る )。

入 力 さ れ た ホ ス ト 名 の 末 尾 が ド ッ ト の 場 合 、 末 尾 の ド ッ ト は 削 除 さ れ 、 そ れ 以 上 の 処 理 は 行 わ れ ず 、 (末 尾 の ド ッ ト を 削 除 し た ) 残 り の 名 前 で 検 索 が 行 わ れ る 。

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.example.com, the name lithium.cchem will be checked first as lithium.cchem.cs.example and then as lithium.cchem.example.com. lithium.cchem.com 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)).

関 連 項 目

getaddrinfo (3), gethostbyname (3), nsswitch.conf (5), resolver (5), mailaddr (7), named (8)
IETF RFC 1123
IETF RFC 1178

こ の 文 書 に つ い て

こ の man ペ ー ジ は Linux man-pages プ ロ ジ ェ ク ト の リ リ ー ス 5.10 の 一 部 で あ る 。 プ ロ ジ ェ ク ト の 説 明 と バ グ 報 告 に 関 す る 情 報 は https://www.kernel.org/doc/man-pages/ に 書 か れ て い る 。