DNSに潜む罠
| name | Satoru Kakinohana portfolio |
| job | Software Engineers Specifically Logistics. PHP/JavaScript/AWS etc… |
| hobby | escape room( It is called “リアル脱出ゲーム” in Japan ) |
| Twitte account | @kakisoft_tab |
In the world of the internet, we identify the other by IP Address which is random numbers.
It is similar to phone number.
インターネットの世界は、「IPアドレス」という、数字の羅列で相手を識別して通信をします。
電話番号のようなイメージですね。
But, It is difficult to distinguish the other from those random numbers.
So, It is used technology for replacing numbers with letters on the Internet.
しかし、数字の羅列だと、人間が識別しづらいので、数字を英字に置き換える技術が、ネット上で使われています。
It may seem easy to hear this alone, but various technology are used for this.
これだけを聞くと簡単に思えるかもしれませんが、実際は様々な技術が使われています。
I wasn’t sure about DNS, so I read the book had good reviews on the internet.
DNSについてあまり詳しくなったので、ネット上で評判の良かった本を読んでみました。
Here is the book I read.
その本が、これです。
https://mochikoastech.booth.pm/items/812516
This was good.
Thanks to this book, I got basic knowledge of DNS.
この本のおかげで、私はDNSの基礎を理解する事ができました。
But, today I am not going to explain how DNS works.
しかし、私がこのスライドで取りあげたいのは、DNSの技術についてではありません。
I want to pick up a hidden trap of in this book.
この本に書かれていた、ある「トラップ」についてです。
We normally name variables and functions randomly such as ‘a’, ‘test’, and ‘xxx’.
変数名や関数名に、適当な名前の例として “a”, “test”, “xxx” といった名称を使う事はよくありますが
But, These names are not allowed in DNS.
DNS の世界では、それは許されていません。
Because, there is high possibility of that your random domain name is already taken.
なぜなら、そのドメインの所有者が存在する可能性があるからです。
For example, test.co.jp is taken by Kyoikuhyokakenkyujyo.
例えば、test.co.jp というドメインは、
有限会社教育評価研究所という会社のウェブサイトです。
And ‘aaa.com’ is already taken by the American Automobile Association.
同様に、aaa.com は、American Automobile Association のウェブサイトです。
If you use domain name that is not yours, it cause some troubles.
このように「自分の持ち物でないドメイン名」を勝手に使うのはトラブルの元となります。
In fact, there are defined domain names which we can use freely on the internet.
実はインターネットでは「例示やテストで使って いいドメイン名」というものが定められています。
You can use following domain names for mail address of test user or when you write in form.
テストユーザのメールアドレスや、 フォームで例として書くメールアドレスには次のドメイン名を使いましょう。
These domains will not taken by someone.
You avoid sending email to a unexpected third person unintentionally.
これらのドメイン名であれば将来的に誰かのものになる可能性もありません。
予期せぬ第三者へうっかりメールが飛んでいってしまうことも避けられます。
So, here goes the main part.
そして、ここからが本題です。
The author introduced those domains in the book.
for example ‘aaa.com’, ‘test.com’, and ‘xxx.com’
そして、この本では、取得済みのドメインの例として、“aaa.com”, “test.co.jp”, “xxx.com” が紹介されています。
I became interested in these so I visited those websites.
興味が湧いたので、それらのサイトを訪問してみました。
But, one of domain had an unexpected hidden trap.
その中の1つのドメインに、とんでもない罠が隠されていました。
Unbelievably, “xxx. com” is a hardcore adult web site!
何と、“xxx. com” は、かなりドギツめのアダルトサイトだったのです!
When I checked the site, I was in the office, so I closed this page quickly.
そのサイトを見ていたとき、私はオフィスにいたので、超速でブラウザを閉じました。
Maybe, nobody noticed this accident.
When you visit unknown domains, be careful enough.
多分、誰にも見られてなかったと思います。
皆様も、正体不明のドメインを踏む時は、注意してください。
Also, If the domain that you proposed as example in the formal meeting is actual existing adult website, you might feel embarrassed.
また、「例として適当に挙げたドメインが、実在するアダルトサイトだった」となってしまったら、オフィシャルな場面では、笑うに笑えません。
Be careful with domain names.
ドメインの取り扱いには注意しましょう。
So, I tweeted this accident.
そして、この事件を私は Twitter で呟きました。
Then the author of the book replied me.
すると、本の作者からリプライをもらえました。
She said “I’m sorry about xxx/.com”
She is a great engineer!
Furthermore, as of December 2020, you can’t access xxx.com.
You can visit without any problems even if you are in office.
なお、2020年 12月の時点では、xxx.com はアクセスできないようです。
あなたがオフィスにいる時でも、安心して訪れてみてください。
However, in the moment you visit the website, it might be revived.
ただし、あなたがアクセスしたその瞬間には、生き返っているかもしれません。
fin.