ちゃっぴの監禁部屋

ガチガチに締めすぎて動きがとれなくなる。。。

ホーム 連絡をする 同期する ( RSS 2.0 ) Login
投稿数  405  : 記事  5  : コメント  12114  : トラックバック  134

ニュース

記事カテゴリ

書庫

日記カテゴリ

Communities

Personal Information

ネタ元: URL の hostname 末尾に "." を付けると。。。

Domain name の仕様どうなっているか?ちょっと調査してみる。

とりあえず、今回は URI で使われる仕様が知りたかったので RFC 3986 から。

「3.2.2. Host」 の section に下記のように書かれています。

The rightmost domain label of a fully qualified domain name in DNS may be followed by a single "." and should be if it is necessary to distinguish between the complete domain name and some local domain.

FQDN の一番右端の "." は完全 domain と local domain を区別するために付ける。(ちょー意訳)

なお、その前の行で参照しろと書いてある RFC 1034 「3.1. Name space specifications and terminology」にもちゃんと書いてはありますね。

When a user needs to type a domain name, the length of each label is omitted and the labels are separated by dots ("."). Since a complete domain name ends with the root label, this leads to a printed form which ends in a dot.

"." で区切られる label は省略可能で、domain name の最後の "." は完全修飾 domain name (FQDN) を表すと。

ただ、「3.5. Preferred name syntax」 では domain name は下記のように定義されています。

<DOMAIN> ::= <SUBDOMAIN> | " " <SUBDOMAIN> ::= <LABEL> | <SUBDOMAIN> "." <LABEL> <LABEL> ::= <LETTER> [ [ <LDH-STR> ] <LET-DIG> ] <LDH-STR> ::= <LET-DIG-HYP> | <LET-DIG-HYP> <LDH-STR> <LET-DIG-HYP> ::= <LET-DIG> | "-" <LET-DIG> ::= <LETTER> | <DIGIT> <LETTER> ::= any one of the 52 alphabetic characters A through Z in upper case and a through z in lower case <DIGIT> ::= any one of the ten digits 0 through 9

最後の "." についてふれられていないですね。できれば、直して欲しいな~。

どちらにしろ、最後の "." を誤って解釈するのは Web server の問題だと思います。仕様違反だなこりゃ。

投稿日時 : 2008年5月25日 18:34

コメント

# re: Domain name syntax 2008/05/25 20:07 凪瀬
うーわー。知らなかったー。恥ずかしいー(///)

# re: Domain name syntax 2008/06/03 15:38 ちゃっぴ
これ、よく考えたら URL みて振り分け先かえるところの問題だな。
"/" 以前完全一致で判断させちゃっているんじゃない?

# パネライ最高品質時計 2017/10/16 0:12 ixpcrc@msn.com
非常にいい商品です!大満足です。ありがとうございます。
【送料無料】ルイヴィトン ボストンバッグをセール価格で販売中♪ルイヴィトン ボストンバッグ モノグラム クルーザー・バッグ M41138 新品 LOUISVUITTON
非常にいい商品です!大満足です。ありがとうございます。

# Get information now. Generic Name.
https://edonlinefast.com
earch our drug database. Best and news about drug. 2023/02/17 6:56 EdPills
Get information now. Generic Name.
https://edonlinefast.com
earch our drug database. Best and news about drug.

# doxycycline 500mg - https://doxycyclinesale.pro/# 2023/04/22 4:04 Doxycycline
doxycycline 500mg - https://doxycyclinesale.pro/#

# prednisone 20 mg pill - https://prednisonesale.pro/# 2023/04/22 15:11 Prednisone
prednisone 20 mg pill - https://prednisonesale.pro/#

# buy cytotec online fast delivery - https://cytotecsale.pro/# 2023/04/29 4:41 Cytotec
buy cytotec online fast delivery - https://cytotecsale.pro/#

# over the counter acne treatments https://overthecounter.pro/# 2023/05/08 22:46 OtcJikoliuj
over the counter acne treatments https://overthecounter.pro/#

# best pill for ed: https://edpills.pro/# 2023/05/16 3:20 EdPillsPro
best pill for ed: https://edpills.pro/#

# cheap prednisone online https://prednisonepills.pro/# - can i buy prednisone from canada without a script 2023/06/05 5:19 Prednisone
cheap prednisone online https://prednisonepills.pro/# - can i buy prednisone from canada without a script

# paxlovid price https://paxlovid.pro/# - paxlovid buy 2023/07/03 3:59 Paxlovid
paxlovid price https://paxlovid.pro/# - paxlovid buy

# new treatments for ed https://edpills.ink/# - best erectile dysfunction pills 2023/07/27 0:52 EdPills
new treatments for ed https://edpills.ink/# - best erectile dysfunction pills

# farmacie online affidabili https://farmaciait.pro/ farmacia online miglior prezzo 2023/12/04 10:13 Farmacia
farmacie online affidabili https://farmaciait.pro/ farmacia online miglior prezzo

Post Feedback

タイトル
名前
Url:
コメント