ããããDNSã£ã¦ãªãã ã£ã?
- Domain Name System
- IPã¢ãã¬ã¹ã¨ããã¡ã¤ã³å( www.google.com ã¨ã)ã®ç´ä»ããè¡ããµã¼ã
DNSãµã¼ãã¯2種é¡
- ã³ã³ãã³ããµã¼ã (権å¨DNSãµã¼ã)
- IPã¢ãã¬ã¹ã¨ããã¡ã¤ã³åã®ç´ä»ããåçãããµã¼ã
- ãã£ãã·ã¥ãµã¼ã
- ã³ã³ãã³ããµã¼ãã®å 容ããã£ãã·ã¥ãããµã¼ã
DNSã¯åæ£æ§æ
- ãããã¬ãã«ãã¡ã¤ã³(.comã¨ã)ãããé層æ§é ã«ããã¤ãã®DNSãµã¼ããç«ã£ã¦ãã
- ç¹å®ã®DNSãµã¼ãã管çãããã¡ã¤ã³ã®ç¯å²ã®ãã¨ã ã¾ã¼ã³ ã¨è¨ã
- ä¸çªä¸ã®DNSãµã¼ãã DNSã«ã¼ããµã¼ã ã¨ãã
ãã¡ã¤ã³åå¾ã®æµã
DNSãµã¼ããèªèº«ãç¥ããªããã¡ã¤ã³ã調ã¹ãå ´å
- ã«ã¼ããµã¼ãã«åãåãããè¡ã
- ã«ã¼ããµã¼ãã¯ãç¹å®ã®ã¾ã¼ã³ã¨DNSãµã¼ãã®çµã¿åãããæã£ã¦ããã®ã§ãããã®ã¾ã¼ã³ãªãã°ããã®DNSãµã¼ãã«åãåããããã¨ããåçããã
- ãã®ã¾ã¾ãæ¬å½ã«IPãæã£ã¦ããDNSãµã¼ãã¾ã§ãããã¾ãããè¡ããã
[ã«ã¼ããµã¼ã] -> [ã³ã³ãã³ããµã¼ã] -> .... -> [ã³ã³ãã³ããµã¼ã]
ã¤ãã§ã«ãªã¾ã«ãã®è©±
- ã¢ããªã±ã¼ã·ã§ã³ãããã¡ã¤ã³åãåãããããã¨ãDNSã«åãåãããè¡ã£ã¦åçãã¦ããããµã¼ãã¹
- linux ç³»ã ã¨
/etc/resolv.conf
ã«DNSãµã¼ãã®IPãæ¸ã
åè
DNSã®ã¬ã³ã¼ã
DNSã«æ ¼ç´ããã¦ããæ å ±ã ã¬ã³ã¼ã ã¨ãã ãã使ãã¬ã³ã¼ãã¯ãããªæã
- Aã¬ã³ã¼ã : ãã¹ãåã¨ãIPv4ã¢ãã¬ã¹ã®ãããã³ã°
- AAAAã¬ã³ã¼ã : ãã¹ãåã¨ãIPv6ã¢ãã¬ã¹ã®ãããã³ã°
- CNAMEã¬ã³ã¼ã : å¥åãå®ç¾©
- 1ã¤ã®IPã¢ãã¬ã¹ã«è¤æ°ã®ãã¹ãåãæããããæ(ãã¼ãã£ã«ãã¹ãã¨ã)
- ãã¨ãwww.test.com ã¨ãtest.com ã©ã¡ãã§ãã¢ã¯ã»ã¹å¯è½ã«ãããæã¨ã?
- NSã¬ã³ã¼ã : ããã¾ã¼ã³ã«ã¤ãã¦ã®DNSãµã¼ãã®åãåããå
- èªåã®ã¾ã¼ã³ã®å ´åãèªåã®ãã¹ããæ¸ããã¦ãã
- ãããã¾ãã
- MXã¬ã³ã¼ã : ãããã¡ã¤ã³å®ã¦ã®ã¡ã¼ã«ãã©ã®ãã¹ãåã«æ¸¡ããã®ãããã³ã°
- PTRã¬ã³ã¼ã IPv4ã¢ãã¬ã¹ã¨ããã¹ãåã®ãããã³ã°
- Aã¬ã³ã¼ãã®éãéå¼ãDNSã§ä½¿ç¨
- SOAã¬ã³ã¼ã : èªåã管çãã¦ããã¾ã¼ã³ã«é¢ãã¦ã®æ å ±
ã¤ãã§ã«ãDNSãè¨å®ããæã«ããèãTTLã£ã¦ä½?
TimeToLive
- ã³ã³ãã³ããµã¼ããè¨å®ããããã£ãã·ã¥ãµã¼ãããã®ãã¼ã¿ãä¿æãã¦è¯ãæé
- åä½ã¯ç§
- DNSã®ããã©ã«ãã®TTLå¤ã¯86400ç§(24H) ããã
DNSã浸éããã£ã¦ã©ããããã¨?
DNSãµã¼ããå¼ã£è¶ãã¦ãAã¬ã³ã¼ããå¤æ´ããæã«ãå¼è¶ãå ã®IPã¢ãã¬ã¹ã«ã¢ã¯ã»ã¹ãããããã«ãªãã¾ã§æéããããæ§å
ä½ã§ãããªãã¨ãèµ·ããã®?
ãããªæµãã§ã親DNSãµã¼ãã®ä¸ã§ æ§DNSãµã¼ãã®NSã¬ã³ã¼ãã延ã ã¨ãã£ãã·ã¥ããã¤ã¥ãã ãã
åæ
- ãã¡ã¤ã³ :
www.example.jp
- æ§DNSãµã¼ã :
ns-old.example.jp
- åæç¥è : èªåã権å¨ãæã£ã¦ããã¾ã¼ã³ã®NSã¬ã³ã¼ãã«ã¯ãèªåèªèº«ãæ¸ã
å¼è¶åãæ§DNSãµã¼ãã®ã¾ã¼ã³æ å ±ã親DNSãµã¼ãã¯ãã£ãã·ã¥ãã¦ãã
親DNSãµã¼ãã®ãã£ãã·ã¥
www.example.jp. 10 IN A 192.0.2.1 example.jp. 100 IN NS ns-old.example.jp.
10ç§å¾ãAã¬ã³ã¼ãã®ãã£ãã·ã¥ãåãã¦ãNSã¬ã³ã¼ãã®ãã£ãã·ã¥ãæ®ã£ã¦ããç¶æ ã«ãªã
親DNSãµã¼ãã®ãã£ãã·ã¥
example.jp. 90 IN NS ns-old.example.jp.
ãã®æã«ãwww.example.jp
ã«ã¤ãã¦åãåãããçºç
- 親DNSã¯ãNSã¬ã³ã¼ãã®ãã£ãã·ã¥ãå ã« æ§DNS ã«åãåãããè¡ã
- æ§DNSã¯ãå¤ãIPãè¿ã
- ãã®å 容ã§Aã¬ã³ã¼ãããã£ãã·ã¥ããã
- ãã®å¾ã NSã¬ã³ã¼ãã®TTLããªã»ããããã!!!!!!
親DNSãµã¼ãã®ãã£ãã·ã¥
www.example.jp. 10 IN A 192.0.2.1 example.jp. 100 IN NS ns-old.example.jp.
å ã«æ»ã£ãã!
ããã延ã ã¨ç¹°ãè¿ãããã¨ã親DNSãµã¼ãã¯ãã¤ã¾ã§ãæ§DNSã®æ å ±ããã£ãã·ã¥ãã¤ã¥ãã¦ãã¾ããã...
ãªãã§TTLããªã»ããã¨ãããã®?
- DNSã®ãããã³ã«ã«éåãã¦ãã訳ã§ã¯ãªã
- ããããã¯ç¡é§ãªåãåããããªãã¹ãããªãããã«ãããã?
æ£ããæ¹æ³
æ°DNSãµã¼ããç«ã¦ãå¾ã«ã親ã®NSã¬ã³ã¼ããåãæ¿ããåã«ã æ§DNSãµã¼ãã®èªã¾ã¼ã³ã®NSã¬ã³ã¼ããæ°DNSãµã¼ãã«åãæ¿ãã¦ãã
- 親DNSãµã¼ãã¯ã©ã¡ãã«ãããæ°DNSãµã¼ãã«åãåããã«è¡ããã¨ã«ãªããããä¸è¨ã®åé¡ã¯çºçããªã
ãã¨ã bind9.2.3ã§ã¯ãTTLããªã»ããããªãããã«å®è£ ãå¤æ´ããã
ã¾ã¨ã
浸éãªãã¦ãªããã ã! åãªãè¨å®ã®ãã¹ã§å¤ãæ å ±ããã£ãã·ã¥ããã¤ã¥ããã ãã ã!!
次åäºå
- digã³ãã³ãã®ä½¿ãæ¹ã«ã¤ãã¦èª¬æãã