ãã¡ã€ã³ããŒã ã·ã¹ãã ã®æŠå¿µ
æŽå²çã«ããã¡ã€ã³ããŒã ã·ã¹ãã ã®åºçŸåã¯ãIPã®ã·ã³ãã«åã解決ããããŒã«ã®åœ¹å²ã¯/ etc / hostsãã¡ã€ã«ã«ãã£ãŠå®è¡ãããŠããŸããã ããããã°ããŒãã«ãããã¯ãŒã¯å ã®ãã¹ãæ°ã®å¢å ã«äŒŽãããã¹ãŠã®ãã¹ãäžã®ååã®ããŒã¿ããŒã¹ã®è¿œè·¡ãšä¿å®ã¯éçŸå®çã«é£ãããªã£ãŠããŸãã ãã®çµæããã¡ã€ã³ãŸãŒã³ã®éå±€ååæ£ã·ã¹ãã ã§ããDNSãæãä»ããŸããã å³ã®ãã¡ã€ã³ããŒã ã·ã¹ãã ã®æ§é ãèŠãŠã¿ãŸãããã
DNSãã¡ã€ã³æ§é ã¯ãããŒãããŸãŒã³ããã¡ã€ã³ããµããã¡ã€ã³ãããã³ä»¥äžã§èª¬æããä»ã®èŠçŽ ã§æ§æãããããªãŒéå±€ã§ãã ãã¡ã€ã³æ§é ã®ãäžéšãã¯ã«ãŒããŸãŒã³ã§ãã ã«ãŒããŸãŒã³èšå®ã¯ãäžçäžã«ããããŸããŸãªãµãŒããŒ/ãã©ãŒäžã«ãããã«ãŒããŸãŒã³ã®ãã¹ãŠã®ãµãŒããŒã«é¢ããæ å ±ãšã第1ã¬ãã«ãã¡ã€ã³ ïŒruãnetãorgãªã©ïŒã®æ å ±ãå«ãŸããŠããŸãã ã«ãŒããŸãŒã³ãµãŒããŒã«é¢ããæ å ±ã¯ããã®ã«ãŒããµãŒããŒãµã€ãã«ãããŸãã ã«ãŒããŸãŒã³ã®èšå®ã¯åžžã«ããã§å©çšã§ããŸã ã ã«ãŒããŸãŒã³ãµãŒããŒã¯ãèŠæ±ãåŠçããŠå¿çãã第1ã¬ãã«ãã¡ã€ã³ã«é¢ããæ å ±ã®ã¿ãæäŸããŸãïŒã€ãŸãããã¹ãŠã®èŠæ±ã«éååž°çã«å¿çããŸãïŒã ãã®ãããã¯ãŒããŸãŒã³ã¯äœåºŠãç¹°ãè¿ãããŠããŸãã ãã®çšèªã«ã€ããŠèª¬æããŸãã
ãŸãŒã³ã¯ã DNSãµãŒããŒäžã®ãŠããããšããŠãã¹ãããããã¡ã€ã³ããŒã ã·ã¹ãã ããªãŒã®äžéšã§ãã ãŸãŒã³ã¯ãç解ãæ·±ããããã«ã ã責任ã®ãŸãŒã³ããšåŒã¶ããšãã§ããŸãã ããªãŒã®äžéšãå¥ã®ãŸãŒã³ã«åé¢ããç®ç㯠ããã®ãã©ã³ãã®è²¬ä»»ïŒ å§ä»» ïŒãå¥ã®å人ãŸãã¯çµç¹ã«ç§»ãããšã§ãã å³ã§ã¯ããŸãŒã³ã®äŸãéã®ã°ã©ããŒã·ã§ã³ã§åŒ·èª¿è¡šç€ºãããŠããŸãïŒãŸãŒã³å ãããŸãŒã³k-max.name ããã¹ãŠã®åŸå±ãªãœãŒã¹ã®å Žåããã¹ãŠã®åŸå±ãµããã¡ã€ã³ãšãªãœãŒã¹ã®www.openoffice.org ïŒã å³ã§ã¯ãã¹ãŠã®ãŸãŒã³ã匷調衚瀺ãããŠããããã§ã¯ãããŸããããäžè¬çãªç解ãšãã¬ãŒã³ããŒã·ã§ã³ã®ããã«ããã€ãã®ãŸãŒã³ã®ã¿ã匷調衚瀺ãããŠããŸãã åãŸãŒã³ã«ã¯ã責任ã®ãããŸãŒã³ã«é¢ãããã¹ãŠã®æ å ±ãæ ŒçŽããå°ãªããšã1ã€ã®æš©éã®ããDNSãµãŒããŒããããŸã ã
ãã¡ã€ã³ã¯ãDNSååããªãŒå ã®ååä»ããã©ã³ããŸãã¯ãµãããªãŒã§ããã€ãŸãããã¹ãŠã®åŸå±ããŒããå«ãç¹å®ã®ããŒãã§ãã Linux Network Administrators Guideããã®æ¬¡ã®åŒçšã¯ããŸãŒã³ãšãã¡ã€ã³ã®éãã®å šäœåã瀺ããŠããŸãã
ãããã£ãŠãåå空éã¯ãŸãŒã³ïŒãŸãŒã³ïŒã«åå²ãããåãŸãŒã³ã¯ç¬èªã®ãã¡ã€ã³ã«ãã£ãŠç®¡çãããŸãã ãŸãŒã³ãšãã¡ã€ã³ã®éãã«æ³šæããŠãã ããïŒgroucho.eduãã¡ã€ã³ã¯Groucho Marx Universityã®ãã¹ãŠã®ãã·ã³ã«åœ±é¿ãäžããŸãããgroucho.eduãŸãŒã³ã«ã¯æ°åŠã»ã³ã¿ãŒãªã©ã®ã³ã³ãã¥ãŒã¿ãŒã»ã³ã¿ãŒã§çŽæ¥åäœãããã¹ãã®ã¿ãå«ãŸããŸãã ã ç©çåŠéšéã®ãã¹ãã¯å¥ã®ãŸãŒã³ãããªãã¡physics.groucho.eduã«å±ããŸãã
DNSéå±€ã®åããŒãã¯ããã®èŠªãããããã§åºåãããŠããŸãã Linuxãã¡ã€ã«ã·ã¹ãã ãäŸã«ãšããšããã¡ã€ã³ã·ã¹ãã ã®æ§é ã¯äŒŒãŠããŸããããã¡ã€ã«ã·ã¹ãã ã®åºåãæåã¯ã¹ã©ãã·ã¥ã§ãããDNSã§ã¯ããªãªãã§ãã ãŸããLinuxãã¡ã€ã«ã·ã¹ãã ã®ãã¹ãšã¯ç°ãªãã DNSã¢ãã¬ã¹ã¯å³ããå·ŠïŒã«ãŒããã¡ã€ã³ãããã¹ãåïŒã«èªã¿åãããŸãã ãã¡ã€ã³åã¯ããã ïŒ ã«ãŒããã¡ã€ã³ ïŒã§å§ãŸã ãæåã2çªç®ãããã³å¿ èŠã«å¿ããŠ3çªç®ãªã©ã®ãã¡ã€ã³ãééããŸãã ã¬ãã«ãšãã¹ãåã§çµäºããŸãã T.O. ãã¡ã€ã³å ã¯DNSéå±€æ§é ãå®å šã«åæ ããŸã ã å€ãã®å ŽåïŒç§ã¯èšã-ãã€ãæ¥åžžç掻ã§ïŒããã¡ã€ã³åã®æåŸã®ãããïŒã«ãŒããã¡ã€ã³ã®æå®ïŒã¯çç¥ãããŸãïŒã€ãŸãããã©ãŠã¶ãŒã§ã¯k-max.nam eã§ã¯ãªããk-max.nam eãšå ¥åããŸãïŒã ãã®ããããã¡ã€ã³åã®æ§é ã調ã¹ãåŸã FQDNã®æŠå¿µã«éãã«ã¢ãããŒãããŸããã
FQDN ïŒ EngãFully Qualifed Domain Name ïŒã¯ããã¡ã€ã³åãäžæã«èå¥ãããã¡ã€ã³åã§ãããã«ãŒããå«ã DNSéå±€ã®ãã¹ãŠã®èŠªãã¡ã€ã³ã®ååãå«ã¿ãŸãã ãã¡ã€ã«ã·ã¹ãã å ã®çµ¶å¯Ÿãã¹ã«ç¹æã®é¡äŒŒç©ã äŸãšããŠãã¡ã€ã³åmail.k-max.nameã䜿çšããŠäžèšãèŠãŠã¿ãŸãããã
mail.k-max.nameã | | | | | | | | | +-ã«ãŒããã¡ã€ã³ | | | + ---第1ã¬ãã«ãã¡ã€ã³ | | + ------ FQDNãã¡ã€ã³/ããŒããåé¢ãããã€ã³ã | + ---------第2ã¬ãã«ãã¡ã€ã³ + ---------------ãµããã¡ã€ã³/第3ã¬ãã«ãã¡ã€ã³ããããã-ãã¹ãå
FQDNãšéåžžã®ãã¡ã€ã³ïŒ éFQDN ïŒåã®éãã¯ã第2ã第3ïŒãªã©ïŒã¬ãã«ã®ãã¡ã€ã³ã«ååãä»ãããšãã«è¡šç€ºãããŸãã FQDNãååŸããã«ã¯ããã¡ã€ã³åã«äžäœãã¡ã€ã³ãæå®ããå¿ èŠããããŸãïŒããšãã°ãmailã¯ãã¡ã€ã³åã§ãããFQDNåã¯mail.k-max.nameã®ããã«ãªããŸãïŒã æ倧FQDNã¯255ãã€ãã§ããã¡ã€ã³åããšã«63ãã€ãã®å¶éããããŸãã
èŠããã«ã ãµããã¡ã€ã³ã¯ãµããã¡ã€ã³ã§ãã æŠããŠãã€ã³ã¿ãŒãããäžã®ãã¹ãŠã®ãã¡ã€ã³ã¯ãã«ãŒããé€ããŠåŸå±ããŠããŸãã ããšãã°ãk-maxãã¡ã€ã³ã¯ååãã¡ã€ã³ã®ãµããã¡ã€ã³ã§ãããååã¯ã«ãŒããã¡ã€ã³ã®ãµããã¡ã€ã³ã§ãã
ãããã£ãŠãäžã®å³ã§ã¯ã ã«ãŒããã¡ã€ã³ã調ã¹ãŸãããéå±€ã®æ¬¡ã¯ãæåã®/ãããã¬ãã«ã®ãã¡ã€ã³ã§ããã TLDã§ãã ã ãããã¬ãã«ãã¡ã€ã³ã§ããããŸãã ãããã®ãã¡ã€ã³ã«ã¯ã åœå¥ãã¡ã€ã³ ïŒ ruã ã Uaã ããªã©ïŒããã³å ±éãã¡ã€ã³ ïŒ comã ã Netã ããªã©ïŒãå«ãŸããŸãã DNSã§å ¬éãããŠããªãããããã°ã©ã ã§äœ¿çšãããç¹æ®ãªãã¡ã€ã³ããããŸã ïŒ.onionãã¡ã€ã³ã¯ãå¿åã®Torãããã¯ãŒã¯ã§äœ¿çšããããã®ãããã¯ãŒã¯äžã®é ããããµãŒãã¹ãã€ã³ã¿ãŒã»ããããã«ãŒãã£ã³ã°ããŸãïŒã ãŸã ãããã RFC 2606ïŒ äºçŽæžã¿ãããã¬ãã«DNSå ïŒã§å®çŸ©ãããŠããäºçŽæžã¿ãã¡ã€ã³åã¯ããã¹ãçšã ãã§ãªããäŸïŒããã¥ã¡ã³ããªã©ïŒãšããŠäœ¿çšãããã¹ããã¡ã€ã³åãå®çŸ©ããŠããŸãã ãã®ãããªååã«ã¯ãããšãã°ãexample.comãexample.orgãexample.netãtestãinvalidãªã©ãå«ãŸããŸããéå±€ã®äžã«ã¯ãã芧ã®ãšããã第3ã¬ãã«ã®ãã¡ã€ã³ãªã©ããããŸãã ãã¡ã€ã³éå±€ã¯ã察å¿ãããªãœãŒã¹ã¬ã³ãŒããŸãã¯ãã¹ãã¬ã³ãŒãã«ãã£ãŠæå®ããããã¹ãåã§çµäºããŸã ã
ãªãœãŒã¹ã¬ã³ãŒã
ãªãœãŒã¹ã¬ã³ãŒãã¯ãæçµçã«ã¯DNSãååšããããã®ãã®ã§ãã ãªãœãŒã¹ã¬ã³ãŒãã¯ãDNSã«æ å ±ãä¿åããã³éä¿¡ããããã®åäœã§ãã ãã®ãããªåã¬ã³ãŒãã¯ãDNSã®ååãšãµãŒãã¹ æ å ±ã®å¯Ÿå¿ æ å ± ãããšãã°ããã¡ã€ã³åãšIPã¢ãã¬ã¹ã®å¯Ÿå¿æ å ±ãä¿æããŠããŸãã
ãªãœãŒã¹ã¬ã³ãŒãã¯ã次ã®ãã£ãŒã«ãã§æ§æãããŸãã
- ååïŒNAMEïŒ -ãã®ãªãœãŒã¹ã¬ã³ãŒããã¢ã¿ããããããããæå±ããããã¡ã€ã³åããŸãã¯IPã¢ãã¬ã¹ã ãã®ãã£ãŒã«ãããªãå ŽåããªãœãŒã¹ã¬ã³ãŒãã¯åã®ã¬ã³ãŒãããç¶æ¿ãããŸãã
- Time To LiveïŒ TTLïŒ -æåéãã¬ã³ãŒãã®ãã©ã€ãã¿ã€ã ããã¬ã³ãŒããDNSãã£ãã·ã¥ã«ä¿åãããæéïŒæå®ãããæéåŸã«ã¬ã³ãŒããåé€ãããŸãïŒããã®ãã£ãŒã«ãã¯åã ã®ãªãœãŒã¹ã¬ã³ãŒãã§ç€ºãããªãå ŽåããããŸããããŸãŒã³ãã¡ã€ã«ã®å é ã§ç€ºããããã¹ãŠã®ã¬ã³ãŒãã«ç¶æ¿ãããŸãã
- ã¯ã©ã¹ïŒCLASSïŒ -ãããã¯ãŒã¯ã®ã¿ã€ããå®çŸ©ããŸãïŒINã¯ã±ãŒã¹ã®99.99ïŒ ã§äœ¿çšãããŸãïŒã€ã³ã¿ãŒããããæå³ããŸãïŒããã®ãã£ãŒã«ãã¯ãDNSãTCP / IPãé€ãä»ã®ã¿ã€ãã®ãããã¯ãŒã¯ã§åäœã§ããããšãåæã«äœæãããŸããïŒ
- typeïŒTYPEïŒ -ã¬ã³ãŒãã¿ã€ãã®æ§æãšã¬ã³ãŒãã®ç®ç
- ããŒã¿ïŒDATAïŒ -ããŸããŸãªæ å ±ã圢åŒãšæ§æã¯ã¿ã€ãã«ãã£ãŠæ±ºãŸããŸãã
ãã®å Žåã次ã®æåã䜿çšã§ããŸãã
- ; -ã³ã¡ã³ããå ¥åããŠãã ãã
- ïŒ-ã³ã¡ã³ããå°å ¥ïŒBINDããŒãžã§ã³4.9ã®ã¿ïŒ
- @-çŸåšã®ãã¡ã€ã³å
- ïŒïŒ-ããŒã¿ãè€æ°è¡ã«ãŸãããããšãèš±å¯ãã
- *-ã¡ã¿ãã£ã©ã¯ã¿ãŒïŒååãã£ãŒã«ãã®ã¿ïŒ
ãªãœãŒã¹ã¬ã³ãŒãã®å®å šãªã»ããã¯ã ãŠã£ãããã£ã¢ã§å ¥æã§ããŸãã æãäžè¬çã«äœ¿çšããããªãœãŒã¹ã¬ã³ãŒãã¯æ¬¡ã®ãšããã§ã ïŒããã«ãå®éã«ãããã確å®ã«æ€èšããŸãïŒã
- -ïŒ ã¢ãã¬ã¹ã¬ã³ãŒã ïŒã¯ããã¹ãåïŒãã¡ã€ã³åïŒãIPv4ã¢ãã¬ã¹ã«ãããããŸãã ãã·ã³ã®ãããã¯ãŒã¯ã€ã³ã¿ãŒãã§ã€ã¹ããšã«1ã€ã®Aã¬ã³ãŒããäœæããå¿
èŠããããŸãã ããšãã°ã次ã®ãšã³ããªã¯ãã¡ã€ã³åk-max.nameã衚瀺ããŸãã IPv4ã§ã¯ããã¹ãã¢ãã¬ã¹ã¯81.177.139.65ã§ã ïŒ NAMEãã£ãŒã«ãã¯k-max.nameã§ããTTLãã£ãŒã«ãã¯86400 ã CLASSãã£ãŒã«ãã¯IN ã DATAãã£ãŒã«ãã¯81.177.139.65ã§ã ïŒïŒ
k-max.nameã 86400 IN A 81.177.139.65
- AAAA ïŒ IPv6ã¢ãã¬ã¹ã¬ã³ãŒã ïŒã¯Aã«äŒŒãŠããŸãããIPv6çšã§ãã
- CNAME ïŒ æ£èŠåã¬ã³ãŒã/ãšã€ãªã¢ã¹ïŒ -ïŒå¥ã®ååã«ãªãã€ã¬ã¯ãããããã«ïŒå®åã®ãšã€ãªã¢ã¹ã衚瀺ããŸããããšãã°ã次ã®ã¬ã³ãŒãã¯ãã¹ãwww.k-max.nameã® ftpãšã€ãªã¢ã¹ãèšå®ããŸãã
ftp 86400 IN CNAME www.k-max.nameã
- MX ïŒ ã¡ãŒã«äº€æ ïŒ-ãã¡ã€ã³å®ã®ã¡ãŒã«ãé
ä¿¡ãããã¹ãã瀺ããŸãã åæã«ãNAMEãã£ãŒã«ãã¯å®å
ãã¡ã€ã³ã瀺ãã TTL ã CLASS ãã£ãŒã«ãã¯æšæºå€ã TYPEãã£ãŒã«ãã¯MXå€ããDATAãã£ãŒã«ãã¯åªå
é äœã瀺ããã¹ããŒã¹ã䜿çšããŠã ã¡ãŒã«ã®åä¿¡ãæ
åœãããã¹ãã®ãã¡ã€ã³åã瀺ããŸã ã ããšãã°ã次ã®ãšã³ããªã¯ãk-max.nameãã¡ã€ã³ã®å Žåãæåã«mx.k-max.nameã«ã¡ãŒã«ãéä¿¡ããmx.k-max.nameã«åé¡ãããå Žåã¯mx2.k-max.nameã«ã¡ãŒã«ãéä¿¡ããããšã瀺ããŠããŸãã åæã«ãäž¡æ¹ã®MXãã¹ãã«å¯Ÿå¿ããAã¬ã³ãŒããå¿
èŠã§ãã
k-max.nameã 17790 IN MX 10 mx.k-max.nameã k-max.nameã 17790 IN MX 20 mx2.k-max.nameã
- NS ïŒ ããŒã ãµãŒããŒ/ããŒã ãµãŒã㌠ïŒã¯ããã®ãã¡ã€ã³ã«ãµãŒãã¹ãæäŸããDNSãµãŒããŒãæããŸãã ããããããã¯èšãããŸã-ãã®ãã¡ã€ã³ãå§ä»»ããããµãŒããŒã瀺ããŸãã NSã¬ã³ãŒããçŸåšã®ãŸãŒã³ã®ããŒã ãµãŒããŒãåç
§ããŠããå Žåããã¡ã€ã³ããŒã ã·ã¹ãã ã¯å®è³ªçã«ãããã䜿çšããŸããã ãŸãŒã³ãã©ã®ããã«æ§æãããŠããããã©ã®ãã·ã³ãããŒã ãµãŒãã¹ãæäŸããäžã§éèŠãªåœ¹å²ãæããããç°¡åã«èª¬æããŸãã ããšãã°ãååãŸãŒã³ã 次ã®NSãæäŸããŸãã
ååã 5772 IN NS l6.nstld.comã ååã 5772 IN NS m6.nstld.com ååã NS c6.nstld.comã®5772ã ååã NS j6.nstld.comã®5772 ......
k-max.nameãŸãŒã³ã¯ä»¥äžã«ãã£ãŠæäŸãããŸãïŒ
k-max.nameã 1577 IN NSns2.jino.ruã k-max.nameã 1577 IN NSns1.jino.ruã
- PTR ïŒ ãã€ã³ã¿ãŒ ïŒ-IPã¢ãã¬ã¹ããã¡ã€ã³åã«ãããããŸãïŒãã®ã¿ã€ãã®ã¬ã³ãŒãã«ã€ããŠã¯ã以äžã®ååã®éå€æã«é¢ããã»ã¯ã·ã§ã³ã§èª¬æããŸãïŒã
- SOA ïŒ æš©éã®éå§ ïŒ-ãŸãŒã³ã®åºæ¬/åæèšå®ã«ã€ããŠèª¬æããŸã ãã€ãŸãã ãã®ãµãŒããŒã®è²¬ä»»ã®ãŸãŒã³ãå®çŸ©ããŸã ã åãŸãŒã³ã«ã¯ãSOAã¬ã³ãŒãã1ã€ã ãååšããæåã®ã¬ã³ãŒãã§ãªããã°ãªããŸããã Nameãã£ãŒã«ãã«ã¯ããã¡ã€ã³/ãŸãŒã³å ã TTLãã£ãŒã«ããCLASS-æšæºå€ã TYPEãã£ãŒã«ãã¯SOAå€ã DATAãã£ãŒã«ãã¯ã¹ããŒã¹ã§åºåãããããã€ãã®å€ã§æ§æãããŸãã ãã©ã€ããªDNSïŒãã©ã€ããªããŒã ãµãŒããŒïŒã®åå ããŸãŒã³ç®¡çè
ã®ã¢ãã¬ã¹ã ãŸãŒã³ãã¡ã€ã«ã®ã·ãªã¢ã«çªå·ïŒã·ãªã¢ã«çªå·ïŒ ãŸãŒã³ãã¡ã€ã«ã«å€æŽãå ãããã³ã«ããã®å€ãå¢ããå¿
èŠããããŸããããã¯ããŸãŒã³ãå€æŽããããŸãŒã³ãæŽæ°ããå¿
èŠãããããšãã»ã«ã³ããªãµãŒããŒã«ç€ºããŸãã 次ã¯ã¿ã€ããŒå€ã§ã ïŒ æŽæ° -ã»ã«ã³ããªãµãŒããŒããã©ã€ããªãµãŒããŒãããŒãªã³ã°ããŠãŸãŒã³ã®ã·ãªã¢ã«çªå·ãå¢å ãããã©ããã確èªããé »åºŠã瀺ããŸãã åè©Šè¡ -ããŒãªã³ã°è©Šè¡ã倱æããåŸã®ã¿ã€ã ã¢ãŠãã æéåã -ã»ã«ã³ããªãµãŒããŒãæ
å ±ã䜿çšã§ããæ倧æéåä¿¡ãããŸãŒã³ã æå°TTL-ããŒã¿ãã»ã«ã³ããªãµãŒããŒã®ãã£ãã·ã¥ã«æ®ãæå°æéïŒã 次ã®äŸã¯ã2ã€ã®åäžã®SOAã¬ã³ãŒãã瀺ããŠããŸãïŒ2çªç®ã®ã¬ã³ãŒãã¯æ°è¡ã§èšè¿°ãããŠããŸãïŒããå€ã¯åãã§ããã2çªç®ã®ãã©ãŒãããã¯ãã®æ§é ã«ããç解ããããã§ãã
k-max.nameã 86400 IN SOAns1.jino.ruã hostmaster.jino.ruã 2011032003 28800 7200 604800 86400 k-max.nameã 86400 IN SOAns1.jino.ruã hostmaster.jino.ruã ïŒ 2011032003; ã·ãªã¢ã«ïŒã·ãªã¢ã«çªå·ïŒ 28800; ãªãã¬ãã·ã¥ 7200; åè©Šè¡ïŒåè©Šè¡ïŒ 604800; æéåãïŒæå¹æéïŒ 86400ïŒ; æå°TTL
- SRV ïŒ ãµãŒããŒéžæ ïŒ-ãã®ãã¡ã€ã³å ã®ç¹å®ã®ãµãŒãã¹ïŒJabberãActive Directoryãªã©ïŒã®æäœãæäŸãããµãŒããŒã瀺ããŸãã
å§ä»»ãšã¯äœããèŠãŠã¿ãŸãããã å§ä»» ïŒãŸãã¯ããã責任ã®å§ä»» ïŒã¯ã ãã¡ã€ã³åããªãŒïŒãŸãŒã³ïŒã®äžéšã®è²¬ä»»ãå¥ã®å人ãŸãã¯çµç¹ã«ç§»ãæäœã§ãã å§ä»»ã«ãããDNSã§ã¯ããŸãŒã³ã®ç®¡çãšã¹ãã¬ãŒãžã®é åžãæäŸãããŸãã æè¡çã«ã¯ãå§ä»»ã§ã¯ãããªãŒã®ä»»æã®éšåãå¥ã®ãŸãŒã³ã«å²ãåœãŠããã®ãŸãŒã³ãå¥ã®å人ãŸãã¯çµç¹ã«å±ããDNSãµãŒããŒã«é 眮ããŸãã åæã«ããã¹ãã£ããã³ã°ããªãœãŒã¹ã¬ã³ãŒãïŒNSããã³AïŒã¯ãåãŸãŒã³ã®ä¿¡é Œã§ããDNSãµãŒããŒãžã®ãã€ã³ã¿ãŒãå«ã芪ãŸãŒã³ã«å«ãŸããåãŸãŒã³ã«é¢é£ããä»ã®ãã¹ãŠã®æ å ±ã¯æ¢ã«åãŸãŒã³ã®DNSãµãŒããŒã«æ ŒçŽãããŠããŸãã ããšãã°ãå³ã§ã¯ã ã«ãŒããã¡ã€ã³ã¯TLDãTLDãæ åœãããµãŒããŒã«æš©éãå§ä»»ãã次ã«ãŸãŒã³ã管çããæš©éãå§ä»»ããŸã-第2ã¬ãã«ã®ãµãŒããŒãå Žåã«ãã£ãŠã¯ãã§ãŒã³ãçµäºããŸãããå§ä»»ã¯4ã¬ãã«ãŸãã¯5ã¬ãã«ã«ãŸã§åã¶ããšããããŸãã
ç解ãæ·±ããããã«ãäŸãæããŸãã k-max.nameãµããã¡ã€ã³ã®ç®¡çãå¥ã®äººïŒç§ã®å Žåã¯ãã¹ãïŒã«å§ä»»ãããšãïŒèŠªåã«é¢ä¿ãªãïŒããŒã ã¹ããŒã¹ã®æ®ãã®éšåããç¬ç«ããŠç®¡çãããæ°ãããŸãŒã³ãäœæãããŸãã æš©éã®å§ä»»åŸã®ãŸãŒã³k-max.nameã¯ãååã«äŸåããªããªããŸããã ãŸãã * .k-max.nameã§çµãããã¡ã€ã³åïŒãŸãã¯ãä»»æã®ååïŒãå«ããããšãã§ããŸãã äžæ¹ã ååãŸãŒã³ã * .nameãã§çµãããã¡ã€ã³åã®ã¿ãå«ãŸããŸãããk-max.nameãa-lab.nameãªã©ããã®ãŸãŒã³ã®å§ä»»ããããã¡ã€ã³åã«ã¯å«ãŸããŸããã k-max.name㯠mail.k-max.name ã ftp.k-max.nameãªã©ã®ååã®ãµããã¡ã€ã³ã«åå²ã§ã ããããã®ãµããã¡ã€ã³ã®äžéšã¯åå¥ã®ãŸãŒã³ã«å²ãåœãŠãããšãã§ãããããã®ãŸãŒã³ã®è²¬ä»»ãå§ä»»ããããšãã§ããŸãã ftp.k-max.nameãç¬ç«ãŸãŒã³ã«ãªãå Žåãk-max.nameãŸãŒã³ã«ã¯* .ftp.k-max.nameã§çµãããã¡ã€ã³ã¬ã³ãŒããå«ãŸããŸããã
T.O. 責任ã®å§ä»»åŸ ãå§ä»»ãŸãŒã³ã«ãã£ãŠä¿åãããæ å ±ã«ã¯ãå§ä»»ããããµããã¡ã€ã³ãšãã®ãã¹ããªãœãŒã¹ã¬ã³ãŒãã«é¢ããæ å ±ã¯å«ãŸããªããªããŸãããå§ä»»ããããµããã¡ã€ã³ã«å¯ŸããŠæš©éã®ããããŒã ãµãŒããŒã«é¢ããæ å ±ã¯ä¿åãããŸã ã ãããã¯ã貌ãä»ããã¡ã¢ã§ãããæ¢ã«äžã§è¿°ã¹ãŸããã ãã®å Žåãå§ä»»ããããµããã¡ã€ã³ã«å±ããã¢ãã¬ã¹ã«é¢ããæ å ±ã䜿çšããŠèŠªãã¡ã€ã³ã®DNSãµãŒããŒãèŠæ±ããããšãé¢é£æ å ±ãææããDNSãµãŒããŒã®ãªã¹ããå¿çãšããŠæäŸãããŸãã
DNSãµãŒããŒ
äžèšã§ã¯ããªãœãŒã¹ã¬ã³ãŒãã®çš®é¡ãæ€èšããéã«ã ãã©ã€ããªãµãŒããŒãšã»ã«ã³ããªãµãŒããŒã«ã€ããŠèšåããŸããã ãããã®ã¿ã€ãã«å ããŠãå¥ã®ã¿ã€ã- ãã£ãã·ã³ã°ããããŸãã
ã¡ã€ã³DNSãµãŒããŒ ïŒ ãã©ã€ã㪠ã ãã¹ã¿ãŒ ã ãã©ã€ã㪠ïŒã¯ã æš©éã®ãããµãŒããŒ ïŒ æš©éã®ãããµãŒããŒãšåŒã°ããããšããããŸããããããããæ£ç¢ºã«åŒã³åºãæ¹æ³ã¯ããããŸããïŒã§ãã·ã¹ãã 管çè ãšå ±ã«ãŸãŒã³ããŒã¿ãã¡ã€ã«ã®ã¡ã€ã³ã³ããŒãä¿åããŸã ã
ã»ã«ã³ããªãµãŒããŒãæš©éããããŸãããã¡ã€ã³ãŸãŒã³ãã¡ã€ã«ããã©ã€ããªãµãŒããŒããã³ããŒããŸã ã ã¡ã€ã³ãšã»ã«ã³ã㪠ã®éãã¯ã ã¡ã€ã³ã®èšå®ããŸãŒã³èšå®ãã¡ã€ã«ããæ å ±ãããŠã³ããŒãããããšãšãã»ã«ã³ããªã®èšå®ãã¡ã€ã³ãµãŒããŒãããŸãŒã³èšå®ãããŠã³ããŒãïŒåä¿¡ïŒããããšã ãã§ãã ã»ã«ã³ããªDNSã¯ãå¥ã®ã»ã«ã³ããªãµãŒããŒããããŒã¿ãåä¿¡ã§ããŸãã æš©éã®ãããµãŒããŒãæ åœãããŸãŒã³å ã®ãã¹ãã«å¯ŸããèŠæ±ã¯ãæçµçã«ãããã®ãµãŒããŒïŒãã©ã€ããªãŸãã¯ã»ã«ã³ããªïŒã®ããããã«è»¢éãããŸãã å¿ èŠãªæ°ã®ã»ã«ã³ããªãµãŒããŒãèšå®ã§ããŸãã èšå®ã«å¿ããŠã ã¡ã€ã³ãµãŒããŒã¯ãŸãŒã³ã®å€æŽã«é¢ããã»ã«ã³ããªã·ã°ãã«ãéä¿¡ã§ããŸããã ã»ã«ã³ã㪠ãµãŒããŒã¯ã·ã°ãã«ãåä¿¡ãããšã³ããŒãäœæããŸãã ãã®ã¢ã¯ã·ã§ã³ã¯ã ãŸãŒã³è»¢éãšåŒã°ããŸãã ãŸãŒã³ãã³ããŒããã¡ã«ããºã ã«ã¯ã ãã«ã³ããŒïŒAXFRïŒãšãŸãŒã³ã®å¢åã³ããŒïŒIXFRïŒã® 2ã€ããããŸãã
ãã£ãã·ã¥ãµãŒããŒã¯ èªèšŒãããŠã ãŸãã ããããã®ãµãŒããŒã¯ã¡ã¢ãªïŒãã£ãã·ã¥ïŒã«ä¿åããã以åã®ãªã¯ãšã¹ãã«å¿çããŸãããã®ãµãŒããŒããªã¯ãšã¹ããåä¿¡ããå Žåãæåã«ãã£ãã·ã¥å ã®æ å ±ã確èªãããã£ãã·ã¥ã«å¿ èŠãªå¿çããªãå Žåãäžæµã®DNSãµãŒããŒã«ãªã¯ãšã¹ããéä¿¡ããŸãã
DNSãstelsã¢ãŒãïŒããããäžå¯èŠïŒã§æ§æããããšãã§ããŸãããã®ãµãŒããŒã«é¢ããæ å ±ã¯çŽæ¥ã¯ãšãªã䜿çšããŠååŸã§ããŸããã ããã¯ãå®å šãªç°å¢ã§ãã©ã€ããªãµãŒããŒãæŽçãããŸãŒã³ã«å¯Ÿããæ»æãããŸãŒã³ãä¿è·ããã®ã«åœ¹ç«ã¡ãŸãã
DNSã¯ã©ã€ã¢ã³ãïŒãªãŸã«ããŒïŒ
ãšã³ããã·ã³ã®ããã°ã©ã ã¯ãDNSã¯ãšãªãéä¿¡ããå Žæãšåœ¢åŒãã©ã®ããã«ç¥ã£ãŠããŸããïŒ åœŒãã¯ãããç¥ããŸãã ã¯ã©ã€ã¢ã³ãã¢ããªã±ãŒã·ã§ã³ã¯ãResolverã©ã€ãã©ãªã䜿çšããŠååãšIPã¢ãã¬ã¹ã解決ããŸãã ããã¯ç¹å¥ãªã¢ããªã±ãŒã·ã§ã³ã§ã¯ãªããã·ã¹ãã ã®æ©èœïŒã«ãŒãã«ïŒã§ãã T.O. ã¢ããªã±ãŒã·ã§ã³ã¯ã·ã¹ãã ã³ãŒã« gethostbynameïŒ2ïŒããã³gethostbyaddrïŒ2ïŒãéä¿¡ããã«ãŒãã«ã¯/etc/nsswitch.confãã¡ã€ã«ã®èšå®ã«åºã¥ããŠã次ã«é²ãã¹ãæ¹æ³ã決å®ããŸãã ãã®ãã¡ã€ã«ã¯ãã©ã®ãµãŒãã¹ïŒ / etc / hostsãŸãã¯DNS ãã¡ã€ã« ïŒããã³äœ¿çšããé åºã決å®ããŸãã 以åã®ããŒãžã§ã³ã®Linuxã©ã€ãã©ãªlibcã§ã¯ã /etc/host.confãã¡ã€ã«ã䜿çšãããŠããŸããã èå³ã®ãããã¡ã€ã«ã®æçã次ã«ç€ºããŸãã
ã«ãŒã@ DNSïŒãïŒcat /etc/nsswitch.conf ...... ãã¹ãïŒãã¡ã€ã«dns ãããã¯ãŒã¯ïŒãã¡ã€ã«
ãã®ãã©ã°ã¡ã³ãã®2è¡ã¯ãæåã«hostsãã¡ã€ã«ããDNSã«ãã£ãŠãã¹ãåãIPïŒ hostsïŒfiles dns line ïŒã«å€æãã/ etc / networkãã¡ã€ã«ã䜿çšããŠãããã¯ãŒã¯åãIPïŒ networksïŒfiles line ïŒã«å€æããããã«ãŒãã«ã«æ瀺ããŸãã NISãŸãã¯nispluãã©ã¡ãŒã¿ãŒãäœ¿çš ã§ããŸãã ãããã®ãã©ã¡ãŒã¿ãŒã¯ã ãããã¯ãŒã¯æ å ±ã·ã¹ãã ïŒNISïŒã䜿çšããŠã¢ãã¬ã¹ãæ€çŽ¢ãããã©ããã決å®ããŸãã ãµãŒãã¹ããªã¹ããããé åºã«ãã£ãŠãããŒãªã³ã°ã®é åºã決ãŸããŸãã
/etc/nsswitch.confã«åŸã£ãŠãèŠæ±ãDNSã«ãã£ãŠéä¿¡ãããå Žåã䜿çšããDNSãµãŒããŒã決å®ãã/etc/resolv.confãã¡ã€ã«ã®èšå®ã䜿çšãããŸãã /etc/resolv.confãã¡ã€ã«ã®å žåçãªäŸã次ã«ç€ºããŸãã
ã«ãŒã@ DNSïŒãïŒcat /etc/resolv.conf ããŒã ãµãŒããŒ192.168.1.1 ããŒã ãµãŒããŒ192.168.1.2 ãã¡ã€ã³examle.com
nameserverãã£ã¬ã¯ãã£ãã¯ããªãŸã«ãã®ååž°ã¯ãšãªãå®è¡ãããã¡ã€ã³ããŒã ãµãŒããŒã®ã¢ãã¬ã¹ãå®çŸ©ããŸãã ãã®ãã¡ã€ã«ã§ã¯ãæåã«192.168.1.1 ãšããååã䜿çšã ãæåã®èŠæ±ã192.168.1.2ãåŠçã§ããªãã£ãå Žåã«ååã䜿çšããããšã瀺ãããŠããŸã ã 3ã€ä»¥äžã®ããŒã ãµãŒããŒãã©ã¡ãŒã¿ã䜿çšããªãããšããå§ãããŸã ã ããŒã ãµãŒããŒãªãã·ã§ã³ãæå®ãããŠããªãå ŽåããªãŸã«ããŒã¯ããŒã«ã«ãã¹ãäžã®ãµãŒããŒãžã®æ¥ç¶ãè©Šã¿ãŸãã domainãã©ã¡ãŒã¿ãŒã¯ãDNSããã¹ãåãèŠã€ããããªãå Žåã«çœ®æãããããã©ã«ãã®ãã¡ã€ã³åãæå®ããŸãã ãã¹ãåãæ€çŽ¢ããã³è§£æ±ºããè¿œå ã®ãã¡ã€ã³ãèšå®ããæ€çŽ¢ãªãã·ã§ã³ããããŸã ã æ€çŽ¢ãªãã·ã§ã³ãšãã¡ã€ã³ãªãã·ã§ã³ãäžç·ã«äœ¿çšããããšã¯ã§ããŸããã
DNSãµãŒããŒäžã®ãã£ãã·ã¥ã«å ããŠã ã€ã³ã¿ãŒããããã©ãŠã¶ãŒã® ãã£ãã·ã¥ ã ãªãŸã«ããŒãã£ãã·ã¥ããããŸãã ãŠã£ãããã£ã¢ã¯ããªãéæãªç»åãæäŸããŠããŸãã
DNSã¯ãšãª
DNSã§ã¯æ¬¡ã®ã¿ã€ãã®ã¯ãšãªã䜿çšã§ããŸãïŒ å埩 ïŒå¥ådirect ïŒã reverseããã³recursive ã
å埩 ïŒ çŽæ¥ ã éååž° ïŒ èŠæ±ã¯ããã¡ã€ã³åãDNSãµãŒããŒã«éä¿¡ãããã®ãã¡ã€ã³ã®IPã¢ãã¬ã¹ãŸãã¯ãã®ãã¡ã€ã³ã«å¯ŸããŠæš©éã®ããDNSãµãŒããŒã®ååãè¿ãããã«èŠæ±ããŸãã ãã ããDNSãµãŒããŒã¯å¿çã®ããã«ä»ã®ãµãŒããŒãããŒãªã³ã°ããŸããã ãããã«ãŒããµãŒããŒãšTLDãµãŒããŒã®æ©èœã§ãã
ååž°ã¯ãšãªã¯ããã¡ã€ã³åãDNSãµãŒããŒã«éä¿¡ããèŠæ±ããããã¡ã€ã³ã®IPã¢ãã¬ã¹ãè¿ãããã«èŠæ±ããŸãã ãã®å ŽåããµãŒããŒã¯ä»ã®DNSãµãŒããŒã«ã¢ã¯ã»ã¹ã§ããŸãã
ãªã¿ãŒã³ãªã¯ãšã¹ãã¯IPãéä¿¡ãããã¡ã€ã³åãè¿ãããã«èŠæ±ããŸãã
DNSãµãŒããŒã¯ã å埩ã¯ãšãªã«å¿çããå¿ èŠããããŸã ã ååž°ã¯ãšãªã«å¿çããããã«DNSãæ§æããããšã¯å¯èœã§ã ã DNSãååž°ã¯ãšãªã«å¿çããããã«èšå®ãããŠããªãå ŽåãDNSã¯ããããå埩ãšããŠæ±ããŸãã
éåžž
æé ã«ç€ºãããŠãããã®ãèŠãŠã¿ãŸãããã
- ã¯ã©ã€ã¢ã³ã ïŒãã©ãŠã¶ãŒãã¡ãŒã«ããã°ã©ã ããŸãã¯ãã®ä»ã®ã¢ããªã±ãŒã·ã§ã³ïŒ 㯠ãªãŸã«ããŒã«èŠæ±ãéä¿¡ã ãŸãããªãŸã«ããŒã¯ããããã®æ§æã«åºã¥ããŠæ§ææžã¿ããŒã ãµãŒããŒã®ã¢ãã¬ã¹ã決å®ããŸãã
- ãªãŸã«ã ã¯ãæå®ãããããŒã ãµãŒããŒã« èŠæ±ãéä¿¡ã ãŸã ã
- ããŒã ãµãŒããŒã¯ãã®ååž°çãªã¯ãšã¹ããåãå ¥ãã ãã¡ã€ã³ãååãŸãŒã³ã«é¢ããæ å ±ãããæãããã«ãŒããŸãŒã³ãæ åœ ãã ãµãŒããŒã« ååž°çïŒãŸãã¯èšå®ã«ãã£ãŠã¯éååž°çïŒãªã¯ãšã¹ãã éä¿¡ããŸã ã
- ã«ãŒããŸãŒã³ãµãŒããŒã¯ååž°çãªèŠæ±ãåŠçããŸãã;ãã®çµæããã®èŠæ±ãç¹°ãè¿ãåŠçããååãŸãŒã³ã«å¯ŸããŠæš©éã®ãããµãŒããŒã®ååãšã¢ãã¬ã¹ãè¿ããŸãã
- ãµãŒããŒã¯ãååã®ãŸãŒã³ã®ã¬ãã«ã®éé ã§åŸç¶ã®ãŸãŒã³ã®æš©éã®ãããµãŒããŒã«åãåãããç¶ããŸã
- æºè¶³ã®ããçããåãåããŸã§ããããã®æé ã¯ããã¡ã€ã³åã®é·ãã«å¿ããŠãããå€ããªãå ŽåããããŸã
- ãã¡ã€ã³åã®ãã¹ãã
- ãã®çµæããµãŒããŒã¯ããŒã ãµãŒããŒããå¿ èŠãªå¿çãåä¿¡ããŸããããŒã ãµãŒããŒã¯ããã¹ãã«é¢ããå¿ èŠãªãªãœãŒã¹ã¬ã³ãŒããä¿åããŸãã
- ãµãŒããŒ
ãããã€ããŒLANã¯ãèŠæ±ãããããŒã¿ãã¯ã©ã€ã¢ã³ããªãŸã«ããŒã«è¿ããŸãã
éåžžãã¹ãããæ°ã¯æå°éã«åæžãããŸãã ãªã¯ãšã¹ããæž¡ãéäžã§ããã£ãã·ã¥ã«å¿ èŠãªæ å ±ãä¿åãããã£ãã·ã¥ãµãŒããŒããããŸãã ãã®ã¹ããŒã ã§ã¯ãåé¡ãçºçããå¯èœæ§ããããŸãããªãŸã«ãããååž°ã¯ãšãªãåä¿¡ããããŒã«ã«DNSãµãŒããŒã¯ãä¿¡é Œã§ãããã®ã®ãªã¹ãããDNSãµãŒããŒãã©ã®ããã«éžæããŸããïŒ ã€ã³ã¿ãŒãããã«ã¯å€ãã®ã«ãŒãDNSãµãŒããŒããããŸãããDNSãµãŒããŒã¯ã©ã®ã«ãŒããµãŒããŒã«ãªã¯ãšã¹ããéä¿¡ããŸããïŒ
ãã®åé¡ã解決ããããã«ã BIND DNSãµãŒããŒã¯ã©ãŠã³ã ããªãã æé ïŒ RTT ïŒãšåŒã°ããã¡ããªãã¯ã䜿çšããŠãæš©éã®ããDNSãµãŒããŒãã1ã€ã®ãŸãŒã³ãéžæããŸãã RTTã¯ããªã¢ãŒããµãŒããŒããã®èŠæ±ãžã®å¿çãå°çããé 延ã決å®ããŸãã èŠæ±ããªã¢ãŒããµãŒããŒã«éä¿¡ããããã³ã«ã BIND DNSãµãŒããŒã¯å éšã¿ã€ããŒãéå§ããŸã ã å¿çãåä¿¡ããããšã¿ã€ããŒãåæ¢ããããŒã«ã«ãµãŒããŒã«ãã£ãŠã¡ããªãã¯ãã³ããããããŸãã è€æ°ã®æš©éã®ãããµãŒããŒã®ãããããéžæããå¿ èŠãããå Žåãéžæã¯RTTãæãäœããµãŒããŒã«ãªããŸãã
BINDãæåã«ä»»æã®ãµãŒããŒã«èŠæ±ãéä¿¡ãã ããããå¿çãåä¿¡ããåã«ããªã¢ãŒããµãŒããŒã«ã¯ã枬å®ã«åºã¥ããŠååŸãããä»ã®ãã¹ãŠãããå°ããã©ã³ãã ãªRTTå€ãå²ãåœãŠãããŸãã ãããã£ãŠã DNS BIND㯠ãã¡ããªãã¯ã«åºã¥ããŠåªå ãµãŒããŒã®éžæãéå§ããåã«ãç¹å®ã®ãŸãŒã³ã®ãã¹ãŠã®æš©éã®ãããµãŒããŒãã©ã³ãã ã«ããŒãªã³ã°ããããšãä¿èšŒãããŠããŸãã
DNSãµãŒããŒã®å¿ç
DNSå¿çã«ã¯æ¬¡ã®çš®é¡ããããŸãã
- ä¿¡é Œã§ããå¿çã¯ããŸãŒã³ãæ åœãããµãŒããŒããéä¿¡ãããŸãã
- æš©éã®ãªãå¿çïŒæš©éã®ãªãå¿çïŒã¯ãïŒãã£ãã·ã¥ããã®ïŒãŸãŒã³ãæ åœããŠããªããµãŒããŒããéä¿¡ãããŸãã
éåžžãDNSå¿çã«ã¯æ¬¡ã®æ å ±ãå«ãŸããŸãã
- ããããŒã¬ã³ãŒã -ãªã¯ãšã¹ãã«é¢ãããµãŒãã¹æ å ±ã
- èŠæ±ã¬ã³ãŒã -éä¿¡ãããèŠæ±ãç¹°ãè¿ããŸãã
- å®éã çããèšé²ããããšã¯çããã®ãã®ã§ãã
- æš©éãµãŒããŒã¬ã³ãŒã -çŸåšã®èŠæ±ã®æ å ±ãæ ŒçŽããæš©éã®ãããµãŒããŒã«é¢ããæ å ±ã
- è¿œå æ å ± -NSãµãŒããŒã®ã¢ãã¬ã¹ãªã©ã®è¿œå ã¬ã³ãŒãã
äžèšã¯ãdigãŠãŒãã£ãªãã£ã«ãã£ãŠæ確ã«ç¢ºèªãããŠããŸãã
ã«ãŒã@ DNSïŒãïŒya.ruãæã ; << >> DiG 9.7.3 << >> ya.ruïŒããããŒã»ã¯ã·ã§ã³ïŒ ;; ã°ããŒãã«ãªãã·ã§ã³ïŒ+ cmd ;; çããåŸãŸããïŒ ;; ->>ããããŒ<<-ãªãã³ãŒãïŒã¯ãšãªãã¹ããŒã¿ã¹ïŒNOERRORãidïŒ53499 ;; ãã©ã°ïŒqr rd ra; ã¯ãšãªïŒ1ãåçïŒ7ãæš©éïŒ2ãè¿œå ïŒ3 ;; 質åã»ã¯ã·ã§ã³ïŒïŒã¯ãšãªã»ã¯ã·ã§ã³ïŒ ;ya.ruã 㧠;; åçã»ã¯ã·ã§ã³ïŒïŒå¿çã»ã¯ã·ã§ã³ïŒ ãã 4813 IN A 87.250.250.203 ãã 4813 IN A 87.250.251.3 ãã 4813 IN A 93.158.134.3 ãã 4813 IN A 93.158.134.203 ãã 4813 IN A 213.180.204.3 ãã 4813 IN A 77.88.21.3 ãã 4813 IN A 87.250.250.3 ;; æš©éã»ã¯ã·ã§ã³ïŒïŒæš©éã®ãããµãŒããŒïŒ ãã 4813 IN NS ns1.yandex.ruã ãã 4813 IN NS ns5.yandex.ruã ;; è¿œå ã»ã¯ã·ã§ã³ïŒïŒè¿œå æ å ±-æš©éã®ããããŒã ãµãŒããŒã®ã¢ãã¬ã¹ïŒ ns5.yandex.ruã 345565 IN A 213.180.204.1 ns1.yandex.ruã 345565 IN A 213.180.193.1 ns1.yandex.ruã 3565 IN AAAA 2a02ïŒ6b8 :: 1 ;; ã¯ãšãªæéïŒ7ããªç§ ;; ãµãŒããŒïŒ192.168.1.1ïŒ53ïŒ192.168.1.1ïŒ ;; ãã€ïŒ7æ2æ¥ïŒåïŒ23:02:45 2011 ;; MSGãµã€ãºrcvdïŒ238
ååã®éå€æ
DNSã¯äž»ã«ãã¡ã€ã³åãIPã¢ãã¬ã¹ã«å€æããããã«äœ¿çšãããŸããã éåå€æãŸãã¯é ãããã³ã°ãšåŒã°ããéããã»ã¹ãå®è¡ããããšãã§ããŸãã ãªããªã çŽæ¥DNSããŒã¿ããŒã¹ã®ã¬ã³ãŒãã¯ãã¡ã€ã³åã«ãã£ãŠéå±€æ§é ã«ãªã£ãŠããã DNSã¯ãã®ãããªããŒã¿ããŒã¹ã®IPã¢ãã¬ã¹ã§å¹ççã«æ€çŽ¢ã§ããŸããã DNSãžã®éå€æã«ã¯ãç¹å¥ãªin-addr.arpaãã¡ã€ã³ã䜿çšãããŸãã [åå]ãã£ãŒã«ãã®ãã®ãã¡ã€ã³ã®ãªãœãŒã¹ã¬ã³ãŒãã«ã¯ã[ã¿ã€ã]ãã£ãŒã«ã -PTRããã³[ããŒã¿]ãã£ãŒã«ã -ãã®IPã«å¯Ÿå¿ããFQDNåã® IPã¢ãã¬ã¹ãå«ãŸããŠããŸãã
ãã®å³ã¯ã arpaãã¡ã€ã³ã®æ§é ã瀺ããŠããŸãã ããã§ã¯ãã¹ãŠãã¯ã£ããããŠãããšæããŸãã ãã¡ã€ã³arpaã 2ã€ã®ãµããã¡ã€ã³in-addrããã³ip6ããããããããIPv4ããã³IPv6ã¢ãã¬ã¹ãæ åœããŸã ã ãã¡ã€ã³in-addr.arpaã ãã* .0.in-addr.arpaã before * .255.in-addr.arpaã åãµããã¡ã€ã³ã«ã¯256åã®ãµããã¡ã€ã³ããããŸãã
äžèŠãªéä¿¡ïŒã¹ãã ïŒã®éãæžããããã«ãå€ãã®ã¡ãŒã«ãµãŒããŒã¯ãéä¿¡å ã®ãã¹ãã®PTRã¬ã³ãŒãã確èªã§ããŸãã ãã®å ŽåãIPã¢ãã¬ã¹ã®PTRã¬ã³ãŒãã¯ãSMTPã»ãã·ã§ã³äžã«è¡šç€ºãããéä¿¡ã¡ãŒã«ãµãŒããŒã®ååãšäžèŽããå¿ èŠããããŸãã
瀺ãããŠããå³ã¯ãã³ãã³ãã«ãã£ãŠè¡šãããšãã§ããŸãã
[ã«ãŒã@ DNSã]ïŒwww.ruãæã ... ;; 質åã»ã¯ã·ã§ã³ïŒ ; www.ru IN A ;; åçã»ã¯ã·ã§ã³ïŒ www.ru 52119 IN A 194.87.0.50 ... [ã«ãŒã@ DNSã]ïŒdig -x 194.87.0.50 ... ;; 質åã»ã¯ã·ã§ã³ïŒ ; 50.0.87.194.in-addr.arpaã PTR㧠;; åçã»ã¯ã·ã§ã³ïŒ 50.0.87.194.in-addr.arpaã 30385 IN PTR www.ru ....
åæã«ãdig -x 194.87.0.50ã³ãã³ãã¯ãdig 50.0.87.194.in-addr.arpaããã€ãŸã* .in-addr.arpaãµããã¡ã€ã³ã®ãšã³ããªãšããŠããæ£ç¢ºã«è¡šçŸãããŸãã ããããéè¡šèšïŒãŸãã¯é圢åŒïŒã§è¡šãããŸããã€ãŸããIP 194.87.0.50ãæã€ãã¹ãã¯ãFQDN 50.0.87.194.in-addr.arpaããæã€PTRã¬ã³ãŒããæã¡ãããã¯www.ruãã¡ã€ã³ãæããŸããã»ãšãã©ã®å Žåãã€ã³ã¿ãŒããããããã€ããŒãéåŒããŸãŒã³ãšãã®ç·šéãæ åœããŠããããšã«æ³šæããŠãã ããã
çŽæã©ããã www.ruãã·ã³ã®äžèšã®Aã¬ã³ãŒãã«å¯Ÿå¿ããIN-ADDR.ARPAãã¡ã€ã³ã®PTRãªãœãŒã¹ã¬ã³ãŒãã«ã€ããŠèª¬æããŠããŸãã 次ã®ããã«ãªããŸãã
50.0.87.194 IN PTR www.ru
åå50.0.87.194ã¯ããªãªãã§çµãã£ãŠããªããããçžå¯Ÿçã§ãã 質åïŒäœã«é¢ããŠçžå¯ŸçïŒ ã www.ru ããšã¯ãŸã£ããé¢ä¿ãããŸããã ãã®ãšã³ããªãFQDNã«ããã«ã¯ãããã©ã«ããã¡ã€ã³ã®ååããIN-ADDR.ARPAãã«ããå¿ èŠããããŸãã ããã¯ããŸãŒã³ã®ããã©ã«ããã¡ã€ã³åãIN-ADDR.ARPAã§ããå¥ã®ãã¡ã€ã«ã«PTRã¬ã³ãŒããé 眮ããããšã§å®çŸã§ããŸãã ïŒååä»ãããŒã¢ã³ããŒãã¹ãã©ãããã¡ã€ã«ã§æå®ïŒããŸãã¯$ ORIGINãã£ã¬ã¯ãã£ãã䜿çšããŠãã®ãã¡ã€ã³ãå€æŽããããšã«ããã ããã©ã«ãã®ãã¡ã€ã³ã0.87.194.IN-ADDR.ARPAããšããŠå®çŸ©ãããŠããå Žåããšã³ããªã¯æ¬¡ã®ããã«è¡šãããšãã§ããŸãã
80 IN PTR www.ru
ãã¡ã€ã³åç»é²
äžèšã§èšãã°ããã¡ã€ã³åã®ç»é²ã®åé¡ã«è§ŠããããšæããŸãã
ãã¡ã€ã³ç»é²ã¯ãã¯ã©ã€ã¢ã³ããã©ã®DNSãµãŒããŒããµããã¡ã€ã³ã«å§ä»»ããå¿ èŠãããããã¬ãžã¹ãã©ã«éç¥ãããŸãã¬ãžã¹ãã©ã«é£çµ¡å ãšè«æ±æ å ±ãæäŸããã¢ã¯ã·ã§ã³ã§ããã¬ãžã¹ãã©ã¯ãæ å ±ãé©åãªã¬ãžã¹ããªã«è»¢éããŸããã»ãšãã©ã®å Žåãããã¯ãã¬ãžã¹ããªã«æåã®ã¬ãã«ã®ãŸãŒã³ïŒã€ãŸããruãcomãªã©ã®ãŸãŒã³ã®TLDïŒãæ°ãããã¡ã€ã³åã®ã¬ã³ãŒããå ¥åããããã»ã¹ã§ãã
ãã¡ã€ã³åã¬ãžã¹ãã©ã¯ãæ°ãããã¡ã€ã³åãäœæïŒç»é²ïŒããå¿ é ç»é²ã確ç«ãããŠãããã¡ã€ã³å ã®æ¢åã®ãã¡ã€ã³åã®æå¹æ§ãæ¡åŒµããæš©éãæã€çµç¹ã§ãã
ãã¡ã€ã³ã®è²¬ä»»è ã®å¿ é ç»é²ãå¿ èŠãªãã¡ã€ã³ã®ã¬ãã«ã¯æ¬¡ã®ãšããã§ãã
- ã«ãŒããã¡ã€ã³
- ãã¹ãŠã®ç¬¬1ã¬ãã«ãã¡ã€ã³ïŒTLDïŒ
- ããã€ãã®ç¬¬2ã¬ãã«ãã¡ã€ã³ïŒããšãã°ãcom.ruãŸãã¯co.ukïŒ
ã«ãŒããã¡ã€ã³ã®ã¬ãžã¹ãã©ã¯ICANNã§ããã»ã«ã³ãã¬ãã«ãŸãŒã³ïŒ.com .net .org .biz .info .name .mobi .asia .aero .tel .travel .jobs ...ïŒã§ãã¡ã€ã³ã¬ãžã¹ãã©ãŒã«ãªãã«ã¯ãICANNèªå®ãååŸããå¿ èŠããããŸãã
åœéïŒgTLD-comããOrgãªã©ïŒãã¡ã€ã³ã®ç»é²èŠåã¯ãICANNã«ãã£ãŠç¢ºç«ãããŸããåœå ïŒccTLD-ruãusãªã©ïŒãã¡ã€ã³ã®ç»é²èŠåã¯ãããããã®ã¬ãžã¹ãã©ããã³/ãŸãã¯åœå±ã«ãã£ãŠç¢ºç«ãããŸããããšãã°ã.ruã.rfãã¡ã€ã³ã®ãã¹ãŠã®ã¬ãžã¹ãã©ã®çµ±äžèŠåã¯ãåœå ã€ã³ã¿ãŒããããã¡ã€ã³ã®èª¿æŽã»ã³ã¿ãŒã«ãã£ãŠèšå®ãããŸããå€ãã®ãã¡ã€ã³ïŒruãå«ãïŒã§ã¯ãã¬ãžã¹ãã©ã ããã¬ãžã¹ãã©ã§ã¯ãããŸãããã¬ãžã¹ãã©ãè€æ°ããå Žåã¯ããã¹ãŠã®ã¬ãžã¹ãã©ã§åäžã®ïŒéäžåãŸãã¯åæ£åïŒããŒã¿ããŒã¹ã䜿çšããŠç«¶åãæé€ãããã¡ã€ã³åã®äžææ§ã確ä¿ããå¿ èŠããããŸãã
ã»ãšãã©ã®å Žåããã¡ã€ã³ç»é²ãµãŒãã¹ã¯æ¯æãããç»é²ã®äŸ¡æ Œãšæ¡ä»¶ã¯ã¬ãžã¹ãã©ã«ãã£ãŠæ±ºå®ãããŸãããã¡ã€ã³ãç»é²ããã«ã¯ãç¡æã®ååãéžæããã¬ãžã¹ãã©ã®ããããã«ç»é²ããããã®ã¢ããªã±ãŒã·ã§ã³ïŒnic.ruãªã©ïŒãéä¿¡ããå¿ èŠããããŸãããµãŒãã¹ã®æäŸã«å¯ŸããŠæ¯æããŸããç»é²ã確èªããåŸãã¬ãžã¹ãã©ã€ã³ã¿ãŒãã§ã€ã¹ã§DNSãµãŒããŒãå®çŸ©ïŒå§ä»»ïŒããå¿ èŠããããŸããã»ãšãã©ã®å Žåãããã¯ãã¹ãã®DNSã«ãªããŸãã
èšäºã®æåŸã«ã第2ã¬ãã«ãã¡ã€ã³ã第1ã¬ãã«ãã¡ã€ã³åãšåŒã°ããããšããããã«ãŒããã¡ã€ã³ã®å€ããçç¥ãããã«ãŒããã¡ã€ã³ã®TLDãã¡ã€ã³ãååŸãããããªããŒã±ãã£ã³ã°äžã®ãã¥ã¢ã³ã¹ã«ã€ããŠãèšåããŸãã
ãŸãããã¡ã€ã³ã¢ãã¬ã¹ãšIPã¢ãã¬ã¹ã¯åäžã§ã¯ãªãããšã«æ³šæããŠãã ãããåäžã®IPã¢ãã¬ã¹ã«ã¯å€ãã®ååãä»ããããšãã§ããŸããããã«ããã1å°ã®ã³ã³ãã¥ãŒã¿ãŒã§å€ãã®Webãµã€ãããµããŒãã§ããŸãïŒå ±æãã¹ãã£ã³ã°ãšåŒã°ããŸãïŒéããŸãçã§ã-è€æ°ã®IPã¢ãã¬ã¹ãåäžã®ååã«é¢é£ä»ããããšãã§ããŸããããã«ãããè² è·åæ£ãäœæã§ããŸãã
ãŸãšã
ãããã£ãŠãæ¬æ¥ã®èšäºã§ã¯ããã¡ã€ã³ããŒã ã·ã¹ãã ã®åäœãã§ããã ãæ確ã«èª¬æããããšããŸãããç§ã¯ããããããšæããŸããDNSããŒã¿ããŒã¹ã®éå±€æ§é ã調ã¹ãã¯ã©ã€ã¢ã³ããšDNSãµãŒããŒéã®ããåãã®ããã»ã¹ãããã³DNSãµãŒããŒã®çš®é¡ã調ã¹ãŸããã次ã®èšäºã§ã¯ãLinuxã«BIND DNSãµãŒããŒãã€ã³ã¹ããŒã«ããŠæ§æããéã®å®éçãªåé¡ã«ã€ããŠèª¬æããŸããç§ã¯ããªãã®ã³ã¡ã³ãã«åãã§ããã§ãããã
ä»ã«èªããã®ïŒ
manïŒ5ïŒãªãŸã«ãïŒhttp
://www.opennet.ru/man.shtml ? topic = resolver &category = 5 &russian = 0 manïŒ3ïŒgethostbynameïŒhttp : //www.opennet.ru/cgi-bin/opennet/man .cgiã®ãããã¯=ã®gethostbynameïŒã«ããŽãª= 3ïŒ
Linuxãããã¯ãŒã¯ç®¡çè ã¬ã€ãã¬ãã¥ãŒv2ã®ãã·ã¢èªïŒããŠã³ããŒãã
RFC882ã1035ã1183 mcsim85ã®
èš±å¯ãåŸãŠæçš¿ããŸãããããã«ã¯ãŸã æ¬æ Œçãªã¢ã«ãŠã³ãã¯ãããŸãããããã®ãããªé«å質ã®èšäºã«ã¯ééããªãå€ããŸãã念ã®ããããªãªãžãã«ãžã®ãªã³ã¯ã