2
1

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 1 year has passed since last update.

DNSレコードを登録するときはドメイン名の最後に.を付ける

Last updated at Posted at 2022-08-02

QiitaのDNSレコードを確認してみる

> dig qiita.com                                                                                      (⎈ jpc1-caas1-prod1|tam-prod-cmntool)

; <<>> DiG 9.10.6 <<>> qiita.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54797
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1280
;; QUESTION SECTION:
;qiita.com.			IN	A

;; ANSWER SECTION:
qiita.com.		58	IN	A	54.95.57.105
qiita.com.		58	IN	A	52.197.186.23
qiita.com.		58	IN	A	3.115.129.60

;; AUTHORITY SECTION:
qiita.com.		298	IN	NS	ns-171.awsdns-21.com.
qiita.com.		298	IN	NS	ns-1956.awsdns-52.co.uk.
qiita.com.		298	IN	NS	ns-772.awsdns-32.net.
qiita.com.		298	IN	NS	ns-1049.awsdns-03.org.

;; Query time: 45 msec
;; SERVER: 192.168.113.201#53(192.168.113.201)
;; WHEN: Tue Aug 02 10:48:12 JST 2022
;; MSG SIZE  rcvd: 223

qiita.com.というようにドメイン名の末尾に.が付いているのがわかる。

.がないとどうなるのか

末尾にORIGINが補完される。
https://straypenguin.winfield-net.com/bind9.html#rr_std
例えばqiita.com -> qiita.com.qiita.com.のような感じ。
ORIGINを省略した場合は、named.confで指定したゾーン名が暗黙に使われる。
https://straypenguin.winfield-net.com/bind9.html#rr_misc

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?