0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【DNS】テスト用ドメインには*.testを使用しましょう

Last updated at Posted at 2021-06-06

結論から

テスト用途のドメインには以下を使いましょう

*.test

*はなんでもよくて、例えばexample.testとかです

##ドキュメント例示用途のドメインには以下を使いましょう

example.com
example.net
example.org
*.example

何故?

例示用、テスト用にはこれを使用するといったドメインがRFC2606で定められているからです。 
https://datatracker.ietf.org/doc/html/rfc2606
試しにwhoisでexample.comを調べてみるとIANAのドメインということがわかります。
https://whois.domaintools.com/example.com

守らないとどうなる?

正体のわからないサイトに意図せずアクセスしてしまうかもしれません。

おまけ

日本の例示用ドメインもあります

$ whois example.co.jp
[ JPRS database provides information on network administration. Its use is    ]
[ restricted to network administration purposes. For further information,     ]
[ use 'whois -h whois.jprs.jp help'. To suppress Japanese output, add'/e'     ]
[ at the end of command, e.g. 'whois -h whois.jprs.jp xxx/e'.                 ]

Domain Information:
a. [Domain Name]                EXAMPLE.CO.JP
g. [Organization]               Reserved Domain Name
l. [Organization Type]          Reserved Domain Name
m. [Administrative Contact]
n. [Technical Contact]
p. [Name Server]
s. [Signing Key]
[State]                         Reserved
[Registered Date]
[Connected Date]
[Last Update]                   2000/08/31 19:32:02 (JST)

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?