#contents
* DNS µÕ°ú¤¤Î»ÅÁÈ¤ß [#he054150]
BIND ¤ÎÀßÄê¤ò»Ï¤á¤ëÁ°¤Ë¡¤µÕ°ú¤¤Î»ÅÁȤߤˤĤ¤¤Æ¤â¿¨¤ì¤Æ¤ª¤³¤¦.
¼Â¤Ï¡¤ÍøÍѼԤΤ褯¤¢¤ëľ´¶¤È°Û¤Ê¤ê¡¤DNS ¤ÎµÕ°ú¤(IP ¥¢¥É¥ì¥¹¤«¤é¾¤Î¾ðÊó¤òÃΤë)¤ËÆÃÊ̤ʻÅÁȤߤÏÍÑ°Õ¤µ¤ì¤Æ¤¤¤Ê¤¤.
IP ¥¢¥É¥ì¥¹¤â FQDN ¤Î¤è¤¦¤Ë³¬Áع½Â¤¤ò¤·¤Æ¤¤¤ë¤³¤È¤òÍøÍѤ·¤Æ¡¤
¡ÖIP ¥¢¥É¥ì¥¹¤â¥Û¥¹¥È̾¤Î°ì¼ï¤Ç¤¢¤ë¤È¤ß¤Ê¤·¤Æ DNS ¤Î»ÅÁȤߤËʶ¤ì¹þ¤Þ¤»¤ë¡×
¤³¤È¤ÇµÕ°ú¤¤ò¼Â¸½¤·¤Æ¤¤¤ë.
¶ñÂÎŪ¤Ë¤Ï¡¤"in-addr.arpa." ¤È¤¤¤¦µÕ°ú¤ÀìÍѤÎÆÃÊ̤ʥɥᥤ¥ó¤Î²¼¤Ë¡¤IP ¥¢¥É¥ì¥¹¤òµÕ¸þ¤¤Ë¤·¤Æ¥Û¥¹¥È̾¤È¤ß¤Ê¤·¤Æ DNS ¤Ç¼è¤ê°·¤¦.
&ref(./warning.png); ¥É¥á¥¤¥ó¤Î¥Ä¥ê¡¼¹½Â¤¤È¡¤IP ¤Î¥Ä¥ê¡¼¹½Â¤¤Î¸þ¤¤¬¡ÖµÕ¡×¤Ê¤³¤È¤ËÃí°Õ¤»¤è.
Î㤨¤Ð¡¤192.168.125.91 ¤È¤¤¤¦ IP ¥¢¥É¥ì¥¹¤Ï¡¤91.125.168.192.in-addr.arpa. ¤È¤¤¤¦¥Û¥¹¥È̾¤Ç DNS ¤ÇÅÐÏ¿¡¤¸¡º÷¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ë.
CENTER:&ref(./inverse-IPdomain.png);
CENTER:IP ¤¬ 192.168.125.91 ¤Ç¤¢¤ë¥Þ¥·¥ó¤ÎµÕ°ú¤Íѥɥᥤ¥ó¤Î¹½Â¤
&br;
µÕ°ú¤ÀßÄê¤Ç¤Ï¤³¤ÎÃ챤¬É¬ÍפʤΤdzФ¨¤Æ¤ª¤³¤¦.
dig ¥³¥Þ¥ó¥É¤Ê¤É¤Ç¡¤¾å¤Î»ÅÁȤߤò¼Â´¶¤·¤Æ¤ß¤è¤¦.
¶ñÂÎŪ¤Ë¤Ï¡¤Î㤨¤Ð¥Þ¥·¥ó q01.cl.math.sci.osaka-u.ac.jp = 192.168.125.91 ¤ËÂФ·¤Æ
host -t PTR 91.125.168.192.in-addr.arpa.
¤È¤¹¤ë¤È¡¤
> 91.125.168.192.in-addr.arpa domain name pointer q01.cl.math.sci.osaka-u.ac.jp.
¤È¤·¤Æ¡¤³Î¤«¤Ë¤³¤Î°ú¤Êý¤ÇÅú¤¨¤¬Ê֤äƤ¯¤ë¤³¤È¤¬Ê¬¤«¤ë.
(¤¿¤À¤·¡¤¤³¤ì¤òËè²ó¤ä¤ë¤Î¤ÏÌÌÅݤÀ¤«¤é¤«¡¤¤¿¤¤¤Æ¤¤¤Î¥³¥Þ¥ó¥É¤Ï IP ¥¢¥É¥ì¥¹¤ò¤½¤Î¤Þ¤ÞľÀÜÆþÎϤ·¤Æ¤â¥³¥Þ¥ó¥É¦¤Ç²ò¼á¤·Ä¾¤·¤Æ¤¯¤ì¤ë)
ƱÍͤˡ¤dig ¥³¥Þ¥ó¥É¤Ç¤â¡¤
dig -t PTR 91.125.168.192.in-addr.arpa.
¤È¤¹¤ì¤Ð¤è¤¤¤·¡¤nslookup ¥³¥Þ¥ó¥É¤Ç¤â¡¤
nslookup -q=PTR 91.125.168.192.in-addr.arpa.
¤È¤¹¤ì¤Ð¡¤ËÜÍè¤Î·Á¤Ç¤ÎµÕ°ú¤¤¬¤Ç¤¤ë.
&ref(./warning.png); ¾å¤ÎÎã¤Ç¤Ï¡¤Ì䤤¹ç¤ï¤»¥¿¥¤¥×¤ò¥ì¥³¡¼¥É "PTR" ¤Ë¤·¤Æ¤¤¤ë¤¬¡¤¤³¤ì¤Ï "ANY" ¤Ë¤·¤Æ¤â¤è¤¤¤À¤í¤¦.
&ref(./notes.png); ¼«Ê¬¤Î¥Þ¥·¥ó¤Î IP ¥¢¥É¥ì¥¹¤ò»È¤Ã¤Æ¡¤¾å¤Î host, dig, nslookup ¥³¥Þ¥ó¥É¤ò¹Ô¤Ê¤¤¡¤¼«Ê¬¤Î¥Þ¥·¥ó̾¤¬¤¤Á¤ó¤ÈÊ֤äƤ¯¤ë¤«³Î¤«¤á¤Æ¤ß¤è¤¦.
* DNS Ì䤤¹ç¤ï¤»¥¯¥é¥¤¥¢¥ó¥È¤ÎÀßÄê [#m5cfe5be]
¥µ¡¼¥Ð BIND¤ÎÀßÄê¤ÎÁ°¤Ë¡¤DNS ¤ÎÌ䤤¹ç¤ï¤»¤ÎÀßÄê¤Ï FreeBSD ¤Ç¤É¤Î¤è¤¦¤Ë¤µ¤ì¤Æ¤¤¤ë¤«½ñ¤¤¤Æ¤ª¤³¤¦.
FreeBSD ¤Ç¤Ï DNS Ì䤤¹ç¤ï¤»¤ò¹Ô¤¦»þ¤ÎÀßÄê¤Ï´ðËÜŪ¤Ë /etc/resolv.conf ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤Ë½ñ¤¹þ¤à¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë.
¾ÜºÙ¤Ï man resolv.conf ¤â¤·¤¯¤Ï jman resolv.conf ¤È¤·¤Æ¥Þ¥Ë¥å¥¢¥ë¤òÆɤó¤Ç¤â¤é¤¦¤³¤È¤Ë¤·¤Æ¡¤ºÇÄã¸Â¤ÎÀâÌÀ¤ò½ñ¤¤¤Æ¤ª¤³¤¦.
| ¥ª¥×¥·¥ç¥ó | Îã(¤É¤ì¤â1¹Ô¤Ç½ñ¤«¤ì¤ë) | ÀâÌÀ |h
| nameserver | nameserver 192.168.125.14 | DNS ¤Î(ºÆµ¢Åª)Ì䤤¹ç¤ï¤»Àè. ¤â¤Á¤í¤ó¼õ¤±ÉÕ¤±¤Æ¤¯¤ì¤ëÁê¼ê¤Ç¤Ê¤¤¤È¤¤¤±¤Ê¤¤. nameserver ¥ª¥×¥·¥ç¥ó¤Ï 3¤Ä¤Þ¤Ç»ØÄê¤Ç¤¡¤¾å¤«¤é½ç¤Ë»î¤µ¤ì¤ë. |
| domain | domain cl.math.sci.osaka-u.ac.jp | ¥í¡¼¥«¥ë¥É¥á¥¤¥ó̾. ¤³¤ì¤ò½ñ¤¤¤Æ¤ª¤±¤Ð¡¤¥í¡¼¥«¥ë¥É¥á¥¤¥ó¤Ë½ê°¤¹¤ë¥Û¥¹¥È¤ò¸¡º÷¤¹¤ëºÝ¤ËºÇ½é¤Î . °Ê¹ß¤ò¾Êά¤Ç¤¤ë. search ¤È¤ÏÇÓ¾Ū. |
| search | search math.sci.osaka-u.ac.jp sci.osaka-u.ac.jp | ¸¡º÷¤ÎºÝ¡¤Êä´°¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¥É¥á¥¤¥ó¤Î¥ê¥¹¥È. ¶õÇò¤Ç¶èÀÚ¤ë. domain ¤È¤ÏÇÓ¾Ū. |
&ref(./notes.png); /etc/resolv.conf ¤Î search ¥ª¥×¥·¥ç¥ó¤òÀßÄꤷ¤Æ¡¤³èÍѤ·¤Æ¤ß¤è¤¦.
¶ñÂÎŪ¤Ë¤Ï¡¤
> search cl.math.sci.osaka-u.ac.jp math.sci.osaka-u.ac.jp sci.osaka-u.ac.jp
¤È¤¤¤¦¹Ô¤ò /etc/resolv.conf ¤Ë²Ã¤¨¤¿¸å¡¤
&ref(./warning.png); 1¹Ô¤Ç½ñ¤¯¤³¤È!
host www
¤ä
dig +search -t ANY mail
¤Ê¤É¤È¤·¤Æ¤ß¤è¤¦.
&ref(./warning.png); dig ¥³¥Þ¥ó¥É¤Ï¡¤¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï search ¥ª¥×¥·¥ç¥ó¤ò̵»ë¤¹¤ë¤Î¤Ç, +search ¤È¤·¤Æ¤ª¤¯.
* DNS ¥µ¡¼¥Ð¤Î¿½Å²½ [#r6504da1]
¤µ¤Æ¡¤¤½¤í¤½¤í DNS ¥µ¡¼¥Ð¤ÎÏÃ¤Ë°Ü¤í¤¦.
¤Þ¤º DNS ¥µ¡¼¥Ð¤Î¿½Å²½¤Ë¤Ä¤¤¤Æ½Ò¤Ù¤Æ¤ª¤³¤¦.
DNS ¥µ¡¼¥Ð¤Ï¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ÇÈó¾ï¤Ë½ÅÍפÊÌò³ä¤ò²Ì¤¿¤¹¤â¤Î¤Ç¤¢¤ë¤Î¤Ç¡¤¤¢¤ë¥É¥á¥¤¥ó¾ðÊó¤ò´ÉÍý¤·¤Æ¤¤¤ë¥µ¡¼¥Ð¤¬ 1Â椷¤«¤Ê¤¤¡¤¤È¤¤¤¦¾õÂ֤Ϥ¢¤Þ¤ê¤Ë¤â¿´ºÙ¤¯¡¤Èò¤±¤ë¤Ù¤¤Ç¤¢¤ë.
¤½¤³¤Ç¡¤DNS ¥µ¡¼¥Ð¤Ï´ðËÜŪ¤Ë2²Õ½ê°Ê¾å¤Ë¿½Å²½¤¹¤ë¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë.
&ref(./warning.png); ¤¤¤Þ¤Þ¤Ç dig Åù¤Ç DNS ¾ðÊó¤ò¸«¤¿¤È¤¤Ë¡¤¤É¤Î¥É¥á¥¤¥ó¤ÎôÅö¥µ¡¼¥Ð¤âÊ£¿ô¤¢¤Ã¤¿¤³¤È¤ò»×¤¤½Ð¤½¤¦.
¤½¤·¤Æ¡¤Â¿½Å²½¤·¤¿ºÝ¤Î¥Ç¡¼¥¿¤ÎÀ°¹çÀ¤ä¹¹¿·¤Ë¤Ä¤¤¤Æ¤â¡¤¤¤Á¤ó¤È¤·¤¿»ÅÁȤߤ¬¹Í¤¨¤é¤ì¤Æ¤¤¤ë.
¤³¤ì¤Ï¡¤1¤Ä¤Î¥¾¡¼¥ó(1¤Ä¤Î DNS ¾ðÊó¤ÎÀÕǤÈϰϤȻפ¨¤Ð¤è¤¤)¤Ë¤Ä¤¤¤Æ¡¤¤½¤Î¥ª¥ê¥¸¥Ê¥ë¾ðÊó¤ò¤â¤Ä¥µ¡¼¥Ð ''¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð'' ¤ò1Âæ¤È¡¤¤½¤Î¥³¥Ô¡¼¾ðÊó¤ò¤â¤Ä¥µ¡¼¥Ð ''¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð'' ¤ò 1Âæ°Ê¾åÍÑ°Õ¤¹¤ë¤³¤È¡¤¤È¤·¤Æ¼Â¸½¤µ¤ì¤ë.
¤½¤¦¤·¤Æ¡¤¥ª¥ê¥¸¥Ê¥ë¾ðÊ󤬥ޥ¹¥¿¡¼¥µ¡¼¥Ð¤«¤é¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤ËÄê´üŪ¤Ê¤¤¤·¤Ï¹¹¿·»þ¤Ë¤¹¤°¥³¥Ô¡¼¤µ¤ì¤ë¤³¤È¤Ç¡¤¤³¤ì¤éÊ£¿ô¤Î¥µ¡¼¥Ð¤¬¤Û¤ÜƱ¤¸¾ðÊó¤ò»ý¤Ä»ÅÁȤߤˤʤäƤ¤¤ë.
¤³¤ì¤ò¥¾¡¼¥óžÁ÷¤È¤¤¤¦.¥¾¡¼¥óžÁ÷¤â DNS ¥µ¡¼¥Ð¤Î»Å»ö¤Ê¤Î¤Ç¡¤¿Í´Ö¤¬¼ê¤ò²¼¤¹É¬ÍפÏÆäˤʤ¤.
¤Ê¤ª¡¤DNS Ì䤤¹ç¤ï¤»¤ò¹Ô¤¦¥¯¥é¥¤¥¢¥ó¥È¤«¤é¸«¤ë¤È¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤«¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤«¤Î¶èÊ̤Ϥ¢¤Þ¤ê̵¤¯¡¤Ã±¤Ë¡ÖÁ᤯Åú¤¨¤¿Åۡפʤɤ«¤éÅú¤¨¤òÆÀ¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë.
* DNS ¥µ¡¼¥Ð¤Î¿Æ»Ò´Ø·¸ [#lb9157a0]
¼¡¤Ë¡¤DNS ¥µ¡¼¥Ð¤Î¿Æ»Ò´Ø·¸¤Ë¤Ä¤¤¤Æ½Ò¤Ù¤è¤¦.
³Æ¡¹¤Î DNS ¥µ¡¼¥Ð¤¬¶É½êŪ¤Ê¾ðÊó¤ò»ý¤Ã¤Æ¤¤¤ë¤À¤±¤ÇÁ´ÂΤ¬¤¦¤Þ¤¯¤¤¤¯»ÅÁȤߤΥݥ¤¥ó¥È¤¬¤³¤ì¤Ç¤¢¤ë¤Î¤Ç¡¤¤·¤Ã¤«¤êÍý²ò¤·¤è¤¦.
¤Þ¤º¡¤DNS ¤¬³¬ÁØŪ¤Ç¤¢¤ê¡¤¤½¤Î¾ðÊó¤ò´ÉÍý¤¹¤ë DNS ¥µ¡¼¥Ð¤â³¬ÁØŪ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤ÏÀè¤Î¼ø¶È¤Î dig +trace ¤ÎÎã¤ÇÍý²ò¤Ç¤¤Æ¤¤¤ë¤À¤í¤¦.
¤µ¤Æ¡¤¤Ç¤Ï¤½¤Î³¬ÁØ¡¤¿Æ»Ò´Ø·¸(¿Æ¤¬¤è¤êÂ礤ʥɥᥤ¥ó¤ò¡¤»Ò¤Ï¤½¤ÎÃæ¤Î¥µ¥Ö¥É¥á¥¤¥ó¤ò´ÉÍý¤·¤Æ¤¤¤ë¥µ¡¼¥Ð¤È¤¤¤¦¤³¤È¤Ë¤Ê¤ë)¤Ï¼ÂºÝ¤Ë¤É¤Î¤è¤¦¤Ë´ÉÍý¤µ¤ì¤Æ¤¤¤ë¤À¤í¤¦¤«.
¤³¤ì¤Ï¡¤¡Ö¿Æ¥µ¡¼¥Ð¤¬¡¤»Ò¥µ¡¼¥Ð¤¬¥µ¥Ö¥É¥á¥¤¥ó¤ò´ÉÍý¤·¤Æ¤¤¤ë¤³¤È¤òÃΤäƤµ¤¨¤¤¤ì¤Ð¤è¤¤¡×¤³¤È¤òÍøÍѤ·¤Æ´ÉÍý¤µ¤ì¤Æ¤¤¤ë.
&ref(./warning.png); »Ò¤Ï¿Æ¤òľÀÜÃΤëɬÍפϤʤ¤. ¤Ê¤ó¤Ê¤é°ìÈÖ¾å¤ÎÁÄÀè(¥ë¡¼¥È¥µ¡¼¥Ð13Âæ)¤«¤é¤¿¤É¤ì¤ÐºÑ¤à¤Î¤À¤«¤é.
¶ñÂÎŪ¤Ë¤Ï¡¤¿Æ¥µ¡¼¥Ð¤Î¤½¤Î¥¾¡¼¥ó(¥É¥á¥¤¥ó)¾ðÊó¤ÎÃæ¤Ë¡¤»Ò¥µ¡¼¥Ð¤¬´ÉÍý¤¹¤ë¥¾¡¼¥ó(¥É¥á¥¤¥ó)¤È¤½¤Î»Ò¥µ¡¼¥Ð¤ÎÂбþ¤¬½ñ¤«¤ì¤Æ¤¤¤ì¤Ð¤è¤¤.
&ref(./warning.png); ¤³¤ì¤¬ DNS ¥µ¡¼¥Ð´ÉÍý¤Î°ìÈ֤Υݥ¤¥ó¥È¤À. ¤³¤³¤µ¤¨¤ï¤«¤ì¤Ð¼Â¤Ï¤½¤ó¤Ê¤ËÆñ¤·¤¯¤Ê¤¤.
ʬ¤«¤ê°×¤¤¤è¤¦¤Ë¶ñÂÎÎã¤Ç½ñ¤³¤¦.
Î㤨¤Ð¡¤¤¢¤ë¿Æ¥µ¡¼¥Ð¤¬ aaa.com ¥É¥á¥¤¥ó¤ò´ÉÍý¤·¤Æ¤¤¤Æ¡¤»Ò¥µ¡¼¥Ð ns.sub.aaa.com(192.168.125.105) ¤¬¥µ¥Ö¥É¥á¥¤¥ó sub.aaa.com ¤ò´ÉÍý¤¹¤ë¤È¤·¤è¤¦.
¤³¤Î»þ¤Ï¡¤¿Æ¥µ¡¼¥Ð¤Î aaa.com ¥¾¡¼¥ó¾ðÊóÆâ¤Ë
> sub.aaa.com. IN NS ns.sub.aaa.com.
> ns.sub.aaa.com. IN A 192.168.125.105
¤È½ñ¤¯¤³¤È¤Ë¤Ê¤ë.
&ref(./warning.png); Åö¤¿¤êÁ°¤À¤¬¡¤Æó¹ÔÌܤξðÊ󤬤³¤³¤Ë½ñ¤¤¤Æ¤¢¤ë¤«Â¾¤ÎDNS¤«¤é°ú¤±¤Ê¤¤¤È¡¤ns.sub.aaa.com. ¤Ë¥¢¥¯¥»¥¹¤Ç¤¤Ê¤¤¤Î¤Ç°ÕÌ£¤¬¤Ê¤¤.
¤µ¤Æ¡¤¤³¤ÎÏäòµÕ¤Ë¸À¤¨¤Ð¡¤
¡Ö¿Æ¥µ¡¼¥Ð¤¬¡¤»Ò¥µ¡¼¥Ð¤¬¥µ¥Ö¥É¥á¥¤¥ó¤ò´ÉÍý¤·¤Æ¤¤¤ë¤³¤È¤òÃΤé¤Ê¤¤¡×= ¡Ö¿Æ¥µ¡¼¥Ð¤Ç¾å¤Î¤è¤¦¤ÊÀßÄê¤ò¤·¤Æ¤¤¤Ê¤¤¡×
¾õ¶·¤Ë¤¹¤ì¤Ð¡¤¤½¤Î¥µ¥Ö¥É¥á¥¤¥ó¤Î¾ðÊó¤Ï¡Ö»Ò¥µ¡¼¥Ð¤ËľÀÜÌ䤤¹ç¤ï¤»¤ë¿Í¤¿¤Á¤·¤«ÃΤé¤Ê¤¤¡×¤Î¤Ç¡¤¤¢¤¯¤Þ¤Ç¥í¡¼¥«¥ë¤Ë¥µ¥Ö¥É¥á¥¤¥ó¤ò»È¤¦¤³¤È¤â²Äǽ¤Ç¤¢¤ë.
¼«Âð¤Ç¤Î¤ßÄÌÍѤ¹¤ë¥µ¥Ö¥É¥á¥¤¥ó¤Ê¤É¤Ï¡¤¤³¤¦¤·¤Æ´ÉÍý¤¹¤ë¤È¤¤¤¦¼ê¤â¤¢¤ë¤À¤í¤¦.
¤â¤Á¤í¤ó¡¤¤³¤Î¾ì¹ç¤Ï¤³¤Î¥µ¥Ö¥É¥á¥¤¥ó¾ðÊó¤ò»È¤Ã¤Æ³°¤«¤é¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤Ï¤Ç¤¤Ê¤¤.
* BIND ¤Î´ðËÜÀßÄê [#m9a6d616]
BIND ¤Î»Å»ö¤Ï¥¾¡¼¥óÀßÄê¤ä¥ê¥¾¥ë¥Ð(DNSÌ䤤¹ç¤ï¤»¤ËÅú¤¨¤ë¤³¤È)¤Ê¤É¤¬¤¢¤ë¤ï¤±¤À¤¬¡¤¤Þ¤º¤ÏÆ°¤«¤¹¤¿¤á¤ËºÇÄã¸Â¤ÎÀßÄê¤ò¹Ô¤Ã¤Æ¤ß¤è¤¦.
¤³¤ì¤À¤±¤Ç¤â½¼Ê¬°ÕÌ£¤¬¤¢¤ë.
** named.conf ¤ÎÀßÄê [#r8d1d939]
/etc/namedb (ËÜÅö¤Ï /var/named/etc/namedb )°Ê²¼¤Ë¡¤BIND ¼«¿È¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë named.conf ¤¬¤¢¤ë.
¤³¤ì¤ò½ñ¤´¹¤¨¤ì¤Ð¡¤BIND ¤ÎÂç¤Þ¤«¤ÊÆ°ºî¤¬ÊѤ¨¤é¤ì¤ë.
¤Á¤Ê¤ß¤Ë¡¤named.conf ¤Îʸˡ¥Á¥§¥Ã¥¯ÀìÍÑ¤Ë named-checkconf ¤È¤¤¤¦¥³¥Þ¥ó¥É¤¬¤¢¤ë¤Î¤Ç³Ð¤¨¤Æ¤ª¤³¤¦.
¤µ¤Æ¡¤¥³¥á¥ó¥È¤ò̵»ë¤¹¤ë¤È¡¤¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï¼¡¤Î¤è¤¦¤Ê¹àÌܤ·¤«¤Ê¤¤¤À¤í¤¦.
> options {
> ¡¡¡¡¡¡¡¡¡¡directory¡¡¡¡¡¡¡¡"/etc/namedb";
> ¡¡¡¡¡¡¡¡¡¡pid-file¡¡¡¡¡¡¡¡¡¡"/var/run/named/pid";
> ¡¡¡¡¡¡¡¡¡¡dump-file¡¡¡¡¡¡¡¡"/var/dump/named_dump.db";
> ¡¡¡¡¡¡¡¡¡¡statistics-file "/var/stats/named.stats";
> ¡¡¡¡¡¡¡¡¡¡listen-on¡¡¡¡¡¡¡¡{ 127.0.0.1; };
> ¡¡¡¡¡¡¡¡¡¡disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
> ¡¡¡¡¡¡¡¡¡¡disable-empty-zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
> ¡¡¡¡¡¡¡¡¡¡disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
> ¡¡¡¡¡¡¡¡¡¡forwarders {
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡127.0.0.1;
> ¡¡¡¡¡¡¡¡¡¡};
> };
> &br;
> zone "." { type hint; file "named.root"; };
> &br;
> zone "localhost" { type master; file "master/localhost-forward.db"; };
> zone "127.in-addr.arpa" { type master; file "master/localhost-reverse.db"; };
> zone "255.in-addr.arpa" { type master; file "master/empty.db"; };
> &br;
> zone "0.ip6.arpa" { type master; file "master/localhost-reverse.db"; };
> &br;
> zone "0.in-addr.arpa" { type master; file "master/empty.db"; };
> &br;
> zone "10.in-addr.arpa" { type master; file "master/empty.db"; };
> zone "16.172.in-addr.arpa" { type master; file "master/empty.db"; };
> zone "17.172.in-addr.arpa" { type master; file "master/empty.db"; };
> zone "18.172.in-addr.arpa" { type master; file "master/empty.db"; };
> ¡Ä»÷¤¿¤è¤¦¤ÊÀßÄ꤬³¤¯¤Î¤Çά¡Ä
¤³¤ì¤ò¤ß¤ë¤È¤ª¤ª¤è¤½Ê¬¤«¤ë¤è¤¦¤Ë¡¤¤³¤Î¥Õ¥¡¥¤¥ë¤ÎÀßÄê·Á¼°¤Ïñ½ã¤Ç¡¤options ¤« zone ¤°¤é¤¤¤·¤«ÀßÄê¹àÌܤϤʤµ¤½¤¦¤À.
¼ÂºÝ¤Ë¤Ï¾¤Ë acl(¥¢¥¯¥»¥¹À©¸Â¤ò¤«¤±¤ë), include(¥Õ¥¡¥¤¥ë¤òÊ̤ËÆɤ߹þ¤à), server(¾¤Î DNS ¥µ¡¼¥Ð¤È¤ÎÀܳÀßÄê)¤Ê¤É¤¬ÀßÄê¤Ç¤¤ë¤¬, ¤Þ¤¢º£¤Ïµ¤¤Ë¤·¤Ê¤¯¤Æ¤è¤¤¤À¤í¤¦.
*** named.conf ¤Î options [#fe19397f]
named.conf ¤òÊÔ½¸¤¹¤ëÁ°¤Ë, ¤¤¤Ä¤â¤Î¤è¤¦¤Ë¤Þ¤º¤Ï¥Ð¥Ã¥¯¥¢¥Ã¥×¤ò¤È¤í¤¦.
&ref(./warning.png); ¤¤¤Ä¤Ç¤â¤È¤Ë¤«¤¯¥Ð¥Ã¥¯¥¢¥Ã¥×¤À! Êʤˤ·¤Æ¤·¤Þ¤ª¤¦.
¤µ¤Æ¡¤options ¤Ç¤Ï BIND ¼«¿È¤ÎÆ°ºî¤ò·è¤á¤ë¥ª¥×¥·¥ç¥ó¤òÀßÄꤹ¤ë¡¥
¥Ç¥Õ¥©¥ë¥È¤Ç½ñ¤«¤ì¤Æ¤¤¤ë¤â¤Î¤Ï¤Û¤Ü¤½¤Î¤Þ¤Þ»È¤¨¤ë¤â¤Î¤È¤·¤Æ¡¤¤Û¤È¤ó¤É¤¤¤¸¤é¤Ê¤¤¤Ç¤â¤è¤¤.
&ref(./notes.png); ¤¿¤À¤·¡¤¤³¤ì¤«¤é³§¤Î¥µ¡¼¥Ð¤Ï³Æ¡¹Â¾¤«¤é¤ÎÌ䤤¹ç¤ï¤»¤Ë¤âÅú¤¨¤ë DNS ¥µ¡¼¥Ð¤È¤·¤ÆÀßÄꤷ¤è¤¦.
¤½¤Î¤¿¤á¤Ë¤Ï¡¤Â¾¤Î¥Þ¥·¥ó¤«¤é¤ÎÌ䤤¹ç¤ï¤»¤ò̵»ë¤·¤Ê¤¤¤è¤¦¤ËÀßÄê¤òÊѹ¹¤¹¤ë.
¤½¤³¤Ç¡¤¼«Ê¬¼«¿È¤«¤é¤ÎÌ䤤¹ç¤ï¤»¡Ö¤Î¤ß¡×¤òµö²Ä¤·¤Æ¤¤¤ëÀßÄê¤Ç¤¢¤ë lisen-on Éôʬ¤ò¡¤
> // listen-on { 127.0.0.1; };
¤È, ¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Æ̵¸ú¤Ë¤·¤Æ¤ª¤³¤¦.
¾¤Ë options ¤ÇÀßÄê¤Ë¤è¤¯»È¤¤¤½¤¦¤Ê¤â¤Î¤È¤·¤Æ¤Ï°Ê²¼¤Î¤â¤Î¤¬¤¢¤ë¤Î¤Ç¡¤ÀâÌÀ¤·¤Æ¤ª¤³¤¦.
| ¥¹¥Æ¡¼¥È¥á¥ó¥È | ÀßÄêÎã | ÀâÌÀÅù |h
| forward | forward only; ¤â¤·¤¯¤Ï forward first; | only ¤Î¾ì¹ç¡¤¼«Ê¬¤Ç»ý¤Ã¤Æ¤¤¤Ê¤¤¾ðÊó¤ÏÁ´¤Æ¿ÍǤ¤»(^-^) first ¤Î¾ì¹ç¤Ï¡¤¤Þ¤º¿Í¤ËǤ¤»¤Æ¡¤¥À¥á¤Ê¤é¼«Ê¬¤Ç¤Ê¤ó¤È¤«¤¹¤ë. |
| forwarders | forwarders {192.168.125.xxx; 192.168.125.yyy;}; | forward ¤¹¤ëÁê¼ê |
| recursion | recursion yes; ¤â¤·¤¯¤Ï recursion no; | BIND ¤¬ºÆµ¢ÅªÌ䤤¹ç¤ï¤»¤ò¹Ô¤¦¤«¤É¤¦¤«. ¹Ô¤ï¤Ê¤¤¾ì¹ç¤Ï½ã¿è¤Ë¥¾¡¼¥ó¾ðÊóÄ󶡼ԤȤʤë. |
| allow-query | allow-query { 192.168.125.xxx; 127.0.0.1; }; | Ì䤤¹ç¤ï¤»¤ò¼õ¤±ÉÕ¤±¤ë¥Û¥¹¥È̾¤ÎÎóµó. »ØÄꤷ¤Ê¤¤¤È(¥Ç¥Õ¥©¥ë¥È)¡¤¤É¤³¤«¤é¤Ç¤â¼õ¤±ÉÕ¤±¤ë. |
| allow-recursion | allow-recursion { 192.168.125.xxx; 127.0.0.1; }; | ºÆµ¢ÅªÌ䤤¹ç¤ï¤»¤ò¼õ¤±ÉÕ¤±¤ë¥Û¥¹¥È̾¤ÎÎóµó. »ØÄꤷ¤Ê¤¤¤È(¥Ç¥Õ¥©¥ë¥È)¡¤¤É¤³¤«¤é¤Ç¤â¼õ¤±ÉÕ¤±¤ë. |
| allow-transfer | allow-transfer { 192.168.125.xxx; 127.0.0.1; }; | ¥¾¡¼¥óžÁ÷¤ò¼õ¤±ÉÕ¤±¤ë¥Û¥¹¥È̾¤ÎÎóµó. »ØÄꤷ¤Ê¤¤¤È(¥Ç¥Õ¥©¥ë¥È)¡¤¤É¤³¤«¤é¤Ç¤â¼õ¤±ÉÕ¤±¤ë.¤³¤ì¤ÏÄ̾ï¤Ï´ÉÍý¼Ô¥µ¡¼¥Ð¤È¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤Î¤ß¤Ë¤·¤Æ¤ª¤¯¤Î¤¬¤è¤¤¤È¤µ¤ì¤ë. |
¾¤Ë¤âºÙ¤«¤¤ÀßÄ꤬Âô»³¤¢¤ë¤Î¤Ç¡¤¶½Ì£¤¢¤ë¿Í¤Ï (j)man named.conf ¤È¤·¤Æ¥Þ¥Ë¥å¥¢¥ë¤òį¤á¤Æ¤ß¤è¤¦.
&ref(./notes.png); ¤µ¤Æ¡¤¤Þ¤º¤Ï¡ÖÁ´Éô¿ÍǤ¤»¤Ë¤·¤Æ¤·¤Þ¤¦¡×ÀßÄê¤Ë¤·¤Æ¤ß¤è¤¦.
named.conf ¤Î options Éôʬ¤òÃí°Õ¿¼¤¯½¤Àµ¤·¤Æ¡¤¼¡¤ÎÆâÍƤˤʤë¤è¤¦¤Ë¤·¤Æ¤ª¤³¤¦.
> forward only;
> forwarders { 192.168.125.14; };
&ref(./warning.png); named.conf ¤Î½ñ¼°¤Ç¤Ï¡¤Æó¼ïÎà¤Î¡Ö¥³¥á¥ó¥È¥¢¥¦¥È¡×¤¬»È¤ï¤ì¤Æ¤¤¤ë¤Î¤Ç¡¤¤½¤ì¤Ë°Ï¤Þ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤Ë¤è¤¯µ¤¤ò¤Ä¤±¤è¤¦.
¥³¥á¥ó¥È¥¢¥¦¥È¤µ¤ì¤Æ¤¤¤ë¤È¤³¤í¤Ë²¿¤ò½ñ¤¤³¤ó¤Ç¤â¡¤ÀßÄê¤ËÈ¿±Ç¤µ¤ì¤Ê¤¤.
½¤Àµ¤·¤¿¤é¡¤Ç°¤Î°Ù¤Ë named-checkconf ¤Ç¥Á¥§¥Ã¥¯¤·¤Æ¤ª¤³¤¦.
named-checkconf
²¿¤â¸À¤ï¤ì¤Ê¤±¤ì¤Ð¡¤Ê¸Ë¡¾å¤ÎÌäÂê¤Ï¤Ê¤¤¤È¤¤¤¦¤³¤È¤À. °Â¿´¤·¤Æ¼¡¤Ø¿Ê¤â¤¦.
// ¤¢¤È¡¤Ç°¤Î°Ù¤Ë
// named-checkconf -z
// ¤È¤â¤·¤Æ¤ª¤³¤¦(¥¨¥é¡¼¤¬¤Ç¤ë¤Ï¤º¤À. ¾Ü¤·¤¯¤Ï¸å½Ò.).
// *** ¼Â½¬ [#w2df7607]
// ¾å¤Þ¤Ç¤Îºî¶È¤ò¹Ô¤¨.
// ¤Þ¤¿¡¤¾å¤ÎÀßÄê¤Î°ÕÌ£¤ò½Ò¤Ù¤è(listen-on ÀßÄê¤Î°ÕÌ£¤âÄ´¤Ù¤Æ¤ª¤³¤¦).
*** named.conf ¤Î zone [#v248cc34]
¤Þ¤¿¡¤named.conf ¤Ë¤Ï zone ¤È¤¤¤¦¹àÌܤ¬¤¢¤ë.
¤³¤ì¤¬¡Ö¼«Ê¬¤¬´ÉÍý¤¹¤ë¥¾¡¼¥ó(¥É¥á¥¤¥ó¤È»×¤Ã¤Æ¤è¤¤)¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¡×¤òÀßÄꤹ¤ë¤È¤³¤í¤À.
¤¿¤À¡¤Îɤ¯¤ß¤ë¤Èʬ¤«¤ë¤è¤¦¤Ë¡¤¶ñÂÎŪ¤Ê¾ðÊó¤Ï named.conf ¤Ë¤Ï¤Û¤È¤ó¤É½ñ¤«¤ì¤Æ¤ª¤é¤º¡¤
> file "named.root";
¤Ê¤É¤È¤·¤ÆÊÌ¥Õ¥¡¥¤¥ë¤«¤éÆɤ߹þ¤à¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë.
¤µ¤Æ¡¤Àè¤Ë¤Þ¤º¤³¤³¤Ç¤Ï named.conf ¤Ç¤Î zone ¤Ë¤Ä¤¤¤ÆÀâÌÀ¤·¤è¤¦.
zone ¹àÌܤϰìÈ̤Ë
> zone "¥¾¡¼¥ó̾(¢â¥É¥á¥¤¥ó̾)" {
> ¡¡¡¡¡¡¡¡type ¥¾¡¼¥ó¤Î¥¿¥¤¥×; &color(blue){¢« ¿½Å²½¥µ¡¼¥Ð¤È¤·¤Æ¡¤¼«Ê¬¤¬¡Ö¥ª¥ê¥¸¥Ê¥ë¡×¤Ê¤Î¤«¡Ö¥³¥Ô¡¼¡×¤Ê¤Î¤«¤ò¡¤master, slave ¤Ê¤É¤È¤·¤Æ¶èÊ̤¹¤ë.};
> ¡¡¡¡¡¡¡¡file ¶ñÂÎŪ¤ÊÀßÄêÆâÍƤò½ñ¤¤¤Æ¤¢¤ë¥Õ¥¡¥¤¥ë̾;
> ¡¡¡¡¡¡¡¡masters { ¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤Î IP¥¢¥É¥ì¥¹ }; &color(blue){¢« ¥¾¡¼¥ó¥¿¥¤¥×¤¬ slave ¤Î¾ì¹ç};
> };
¤È¤¤¤¦·Á¤ò¤·¤Æ¤¤¤ë.
°Ê²¼¡¤ÀâÌÀ¤·¤è¤¦.
+++ ¥¾¡¼¥ó̾¤Ï¤Þ¤¢¤ï¤«¤ë¤À¤í¤¦.
+++ ¥¾¡¼¥ó¤Î¥¿¥¤¥×¤Ï¡¤Á´Éô¤Ç hint(¥ë¡¼¥È¥µ¡¼¥ÐÍѤÎÆÃÊ̤ʤâ¤Î¤È»×¤Ã¤Æ¤è¤¤. ¤è¤êÀµ³Î¤Ë¤Ï¡¤¡Ö¾ðÊó¤ò¼«Á°¤Ç¤â¤Ä¤¬¡¤¥Þ¥¹¥¿¡¼¤Ç¤â¥¹¥ì¡¼¥Ö¤Ç¤â¤Ê¤¤¾õÂÖ¡×), master(¼«Ê¬¤¬¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë), slave(¼«Ê¬¤¬¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë) ¤Î3¼ïÎà¤È»×¤Ã¤Æ¤ª¤±¤Ð¤è¤¤.
+++ masters ¤Ï¡¤¼«Ê¬¤¬¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤Ç¤¢¤ë¾ì¹ç¤Ë¡¤¥Ç¡¼¥¿¤ò¤¯¤ì¤ë¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤ò»ØÄꤹ¤ë¤¿¤á¤Ë¤¢¤ë.
+++ file ¤Ï¡¤¼«Ê¬¤¬¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤Î¾ì¹ç¤Ï¼«Ê¬¤Çºî¤ê¡¤master ¥Ç¥£¥ì¥¯¥È¥ê¤Î²¼¤ËÃÖ¤¯.
++ ¥¾¡¼¥ó̾¤Ï¤Þ¤¢¤ï¤«¤ë¤À¤í¤¦.
&br;
++ ¥¾¡¼¥ó¤Î¥¿¥¤¥×¤Ï¡¤Á´Éô¤Ç hint(¥ë¡¼¥È¥µ¡¼¥ÐÍѤÎÆÃÊ̤ʤâ¤Î¤È»×¤Ã¤Æ¤è¤¤. ¤è¤êÀµ³Î¤Ë¤Ï¡¤¡Ö¾ðÊó¤ò¼«Á°¤Ç¤â¤Ä¤¬¡¤¥Þ¥¹¥¿¡¼¤Ç¤â¥¹¥ì¡¼¥Ö¤Ç¤â¤Ê¤¤¾õÂÖ¡×), master(¼«Ê¬¤¬¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë), slave(¼«Ê¬¤¬¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë) ¤Î3¼ïÎà¤È»×¤Ã¤Æ¤ª¤±¤Ð¤è¤¤.
&br;
++ masters ¤Ï¡¤¼«Ê¬¤¬¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤Ç¤¢¤ë¾ì¹ç¤Ë¡¤¥Ç¡¼¥¿¤ò¤¯¤ì¤ë¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤ò»ØÄꤹ¤ë¤¿¤á¤Ë¤¢¤ë.
&br;
++ file ¤Ï¡¤¼«Ê¬¤¬¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤Î¾ì¹ç¤Ï¼«Ê¬¤Çºî¤ê¡¤master ¥Ç¥£¥ì¥¯¥È¥ê¤Î²¼¤ËÃÖ¤¯.
¼«Ê¬¤¬¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤Î¾ì¹ç¡¤slave ¥Ç¥£¥ì¥¯¥È¥ê¤Î²¼¤Ë¥³¥Ô¡¼¤µ¤ì¤Æ¤¯¤ë¤Î¤Ç¡¤¤½¤¦¤¤¤¦¥Õ¥¡¥¤¥ë̾¤Ë¤·¤Æ¤ª¤¯.
¤µ¤Æ¡¤¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò "file" ¹àÌܤËÃåÌܤ·¤ÆʬÎष¤Æ¤ß¤ë¤È¡¤¤ª¤ª¤¶¤Ã¤Ñ¤Ë¤¤¤Ã¤Æ¡¤¡Ö¥ë¡¼¥È¥É¥á¥¤¥ó¡×¡¤¡Ö¼«Ê¬¼«¿È¡×¡¤¡Ö¼«Ê¬¼«¿È¤ÎµÕ°ú¤¡×¡¤¡Ö¤½¤Î¾¤Î(º£¤Ï)»È¤ï¤Ê¤¤¤â¤Î?¡× ¤¬´û¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¤³¤È¤¬¤ï¤«¤ë.
&ref(./warning.png); master/empty.db ¥Õ¥¡¥¤¥ë¤Ï, ÀßÄê¤Ë»È¤¨¤ë¡Ö¿÷·Á¡×¥Õ¥¡¥¤¥ë¤Î¤è¤¦¤À.
¤Ä¤Þ¤ê¡¤¤È¤ê¤¢¤¨¤º¤³¤ì¤ÇºÇÄã¸Â¤ÏÆ°¤¤½¤¦¤À.
&ref(./warning.png); ºÇ°¤Ç¤â¡¤¥ë¡¼¥È¥É¥á¥¤¥ó¤Î¾ðÊ󤵤¨¤¢¤ì¤Ð¤è¤¤¤³¤È¤Ï°ÊÁ°ÊÙ¶¯¤·¤¿¤È¤ª¤ê¤À.
// ¤½¤·¤Æ¤½¤ì¤é¤òÎɤ¯Æɤà¤È¡¤zone "0.0.127.IN-ADDR.ARPA"((¼«Ê¬¼«¿È 127.0.0.1 ¤Î"¾å"¥É¥á¥¤¥ó¤ÎµÕ°ú¤ÍÑ)) ¤È zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA"((¼«Ê¬¼«¿È¤Î"¾å"¥É¥á¥¤¥ó¤ÎµÕ°ú¤ÍÑ IPv6 ))¤ÎÀßÄ꤬½ñ¤«¤ì¤Æ¤¤¤ë¤Ï¤º¤Î¥Õ¥¡¥¤¥ë master/localhost.rev ¤È master/localhost-v6.rev"¤¬Â¸ºß¤·¤Æ¤¤¤Ê¤¤¤³¤È¤Ëµ¤¤Å¤¯.
// ¤½¤³¤Ç¤Þ¤º¤Ï¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤òºî¤í¤¦.
// ¤È¤Ï¤¤¤Ã¤Æ¤â¤È¤¯¤Ë¹Í¤¨¤ëɬÍפϤʤ¯¤Æ¡¤root ¤Ç
// cd /etc/namedb
// sh ./make-localhost
//¤È¤¹¤ì¤Ð¼«Æ°Åª¤Ë¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤¬ºî¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¤¤½¤¦¤·¤è¤¦.
// ¤³¤ì¤Ç¤È¤ê¤¢¤¨¤º¥Ç¥Õ¥©¥ë¥ÈÀßÄê +¥¢¥ë¥Õ¥¡ ¤¬ºÑ¤ó¤À¤Ï¤º¤Ê¤Î¤Ç¡¤¤Þ¤º¤Ï
// named-checkconf -z
// ¤È¤·¤Æ¡¤¥¨¥é¡¼¤¬¤Ç¤Ê¤¤¤«¥Á¥§¥Ã¥¯¤·¤è¤¦.
** ºÇÄã¸Â¤Îµ¯Æ°¥Á¥§¥Ã¥¯ [#b5409769]
&ref(./notes.png); ¤È¤ê¤¢¤¨¤º¡¤¤³¤ì¤Ç BIND ¤ÏºÇÄã¸Â¤ÏÆ°¤¯¤Ï¤º¤À. »î¤·¤Æ¤ß¤è¤¦.
¤È¤¤¤¦¤³¤È¤Ç¡¤/etc/resolv.conf ¤Î nameserver ¹àÌܤò
> nameserver 127.0.0.1
¤È½¤Àµ¤·¡¤/etc/rc.conf ¤Ë
> named_enable="YES"
¤òŬÀڤʾì½ê¤Ë½ñ¤¹þ¤ó¤À¾å¤Ç¥ê¥Ö¡¼¥È¤·¤è¤¦((ÀÎ¤Ï named_flags ¤Ë¤¤¤í¤¤¤íÀßÄꤷ¤Ê¤¤¤È¤¤¤±¤Ê¤«¤Ã¤¿¤¬¡¤º£¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç bind ¥æ¡¼¥¶¤Ç chroot ¤µ¤ì¤ë¤Î¤Ç¡¤¤³¤ì¤À¤±¤Ç¤è¤¤. )).
¤½¤·¤Æ¡¤µ¯Æ°¤·¤¿¤é¤Þ¤º
ps -axuww | grep named
¤È¤·¤Æ¤ß¤è¤¦.
> /usr/sbin/named -t /var/named -u bind
¤È¤¤¤¦¤Î¤¬¸«¤¤½Ð¤»¤ì¤Ð¡¤ÀßÄê¤Ï¤Ò¤È¤Þ¤º¤¦¤Þ¤¯¤¤¤Ã¤Æ¤¤¤ë.
¤µ¤é¤Ë¡¤
dig www.osaka-u.ac.jp
¤Ê¤É¤È¤·¤Æ¤ß¤ë. ¤½¤Î¤È¤¡¤
> ; <<>> DiG 9.4.2 <<>> www.osaka-u.ac.jp
> ;; global options: printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38608
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 3
> &br;
> ;; QUESTION SECTION:
> ;www.osaka-u.ac.jp. ¡¡¡¡¡¡¡¡¡¡IN¡¡¡¡¡¡¡¡¡¡ A
> &br;
> ;; ANSWER SECTION:
> www.osaka-u.ac.jp. ¡¡¡¡¡¡¡¡¡¡ 213263¡¡¡¡¡¡¡¡¡¡ IN¡¡¡¡¡¡¡¡¡¡ A¡¡¡¡¡¡¡¡¡¡ 133.1.8.18
> &br;
> ;; AUTHORITY SECTION:
> osaka-u.ac.jp.¡¡¡¡¡¡¡¡¡¡ 213263¡¡¡¡¡¡¡¡¡¡ IN¡¡¡¡¡¡¡¡¡¡ NS¡¡¡¡¡¡¡¡¡¡ b.osaka-u.ac.jp.
> osaka-u.ac.jp.¡¡¡¡¡¡¡¡¡¡ 213263¡¡¡¡¡¡¡¡¡¡ IN¡¡¡¡¡¡¡¡¡¡ NS¡¡¡¡¡¡¡¡¡¡ sigw.sinet.ad.jp.
> osaka-u.ac.jp.¡¡¡¡¡¡¡¡¡¡ 213263¡¡¡¡¡¡¡¡¡¡ IN¡¡¡¡¡¡¡¡¡¡ NS¡¡¡¡¡¡¡¡¡¡ a.osaka-u.ac.jp.
> &br;
> ;; ADDITIONAL SECTION:
> a.osaka-u.ac.jp.¡¡¡¡¡¡¡¡¡¡ 217104¡¡¡¡¡¡¡¡¡¡ IN¡¡¡¡¡¡¡¡¡¡ A¡¡¡¡¡¡¡¡¡¡ 133.1.192.3
> sigw.sinet.ad.jp.¡¡¡¡¡¡¡¡¡¡ 40463¡¡¡¡¡¡¡¡¡¡ IN¡¡¡¡¡¡¡¡¡¡ A¡¡¡¡¡¡¡¡¡¡ 150.100.2.2
> b.osaka-u.ac.jp.¡¡¡¡¡¡¡¡¡¡ 217776¡¡¡¡¡¡¡¡¡¡ IN¡¡¡¡¡¡¡¡¡¡ A¡¡¡¡¡¡¡¡¡¡ 133.1.119.3
> &br;
> ;; Query time: 0 msec
> ;; &color(red){SERVER: 127.0.0.1#53(127.0.0.1)};
> ;; WHEN: Thu Jan 29 01:57:02 2009
> ;; MSG SIZE rcvd: 159
¤Ê¤É¤È¤Ê¤ê¡¤127.0.0.1¡¤¤Ä¤Þ¤ê¼«Ê¬¼«¿È¤¬ DNS ¥µ¡¼¥Ð¤È¤·¤ÆÌ䤤¹ç¤ï¤»¤ËÅú¤¨¤¿¤³¤È¤¬¤ï¤«¤ë(¼ÂºÝ¤ÏÃΤé¤Ê¤¤¾ðÊó¤ÏÁ´¤Æ 192.168.125.14 ¤ËǤ¤»¤Æ¤¤¤ë¤ï¤±¤À¤¬).
¤³¤ì¤Ç¡¤¾¯¤Ê¤¯¤È¤â BIND ¤ÎÆ°ºî¤¬³Îǧ¤Ç¤¤¿¤³¤È¤Ë¤Ê¤ë.
* BIND ¤Ç¥¾¡¼¥óÀßÄê [#e8aaec77]
¤µ¤Æ¡¤BIND ¤ÎËܼÁŪ¤ª»Å»ö¤Ç¤¢¤ë¡¤¥¾¡¼¥ó(¥É¥á¥¤¥ó)ÀßÄê¤ò¤·¤Æ¤ß¤è¤¦.
¤Ä¤Þ¤ê¡¤¼«Ê¬¤Î¡Ö²¼¡×¤Ë¥É¥á¥¤¥ó¤òºî¤ë¤Î¤À!
¤½¤ì¤Ç¤Ï¡¤³Æ¼«¤Î¥Þ¥·¥ó¤Ç¼ÂºÝ¤Ë¥µ¥Ö¥É¥á¥¤¥ó¤òºî¤Ã¤Æ, ¤½¤ÎÃæ¤Ë5Â椢¤ë¾õÂÖ¤ò´ÉÍý¤¹¤ë¤È¤¤¤¦ÀßÄê¤Ç BIND ¤òÀßÄꤷ¤Æ¤ß¤è¤¦.
¤Þ¤º¡¤³Æ¡¹¤Î¥µ¥Ö¥É¥á¥¤¥ó¤Ï¼¡¤Î¤è¤¦¤Ê¤â¤Î¤È¤¹¤ë.
[[¼ø¶È»ñÎÁ/Âè03²ó ¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÀßÄê>¼ø¶È»ñÎÁ/Âè03²ó#f242101a]] ¤Î PC ÈÖ¹æ¤ò¤â¤È¤Ë¡¤
| ¹àÌÜ | ÀßÄêÃÍ | È÷¹Í |h
| ¥µ¥Ö¥É¥á¥¤¥ó̾ | sub&color(red){PCÈÖ¹æ};.cl.math.sci.osaka-u.ac.jp | ¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤Î "sub" ¤òÈÖ¹æ¤ÎÁ°¤Ë¤Ä¤±¤ë. ¤¿¤À¤·¡¤°ì·å¤Î¾ì¹ç¤Ï 0 ¤¬¤Ä¤¤¤Æ¤¤¤ë¤Î¤ÇÃí°Õ. Î㤨¤Ð¡¤PC ¤ÎÈֹ椬 08 ¤Î¾ì¹ç¡¤sub08 ¤Ç¤¢¤ë. |
| »È¤¨¤ë IP | 192.168.125.&color(red){105+(5*PCÈÖ¹æ)}; £Ž« 192.168.125.&color(red){109+(5*PCÈÖ¹æ)}; ¤Î5¤Ä | ²¿¤âÁ´Éô¤Ä¤«¤¦É¬ÍפϤʤ¤. |
| ¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð | 狼Íè¤Æ¤¤¤ë¿Í¤ÈÁȤó¤Ç¡¤¤½¤Î¿Í¤Î¥µ¡¼¥Ð¤È¤¹¤ë | ¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤Ï²¿Â椢¤Ã¤Æ¤â¤è¤¤¤Î¤Ç¡¤3¿Í¡¤4¿Í¤ÇÁȤó¤Ç¤âÌäÂê¤Ê¤¤ |
¤È¤·¤è¤¦.
&ref(./notes.png); ¤³¤Î¸å¤Îºî¶È¤ò¹Ô¤¦Á°¤Ë¡¤forward only ÀßÄê¤ò³°¤·¤Æ¤ª¤³¤¦.
¶ñÂÎŪ¤Ë¤Ï¡¤/etc/namedb/named.conf ¤Î forward only ¹Ô¤ò¡Ö¥³¥á¥ó¥È¡×¤·¤Æ¡¤Ìµ¸ú¤Ë¤·¤Æ¤ª¤±¤Ð¤è¤¤.
** ¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤ÎÀßÄê - named.conf ¤ÎÀßÄê [#d144237f]
&ref(./notes.png); ¤Ç¤Ï¡¤¾åµ¤ÎÀßÄê¤Ë±è¤Ã¤Æºî¶È¤·¤è¤¦.
Î㤨¤Ð¡¤PC Èֹ椬 17 ¤Î¥Þ¥·¥ó¤Ç¤Ï
> zone¡¡"sub17.cl.math.sci.osaka-u.ac.jp"¡¡{
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡type¡¡master;
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡file¡¡"master/sub17.db";
> };
¤È¤¤¤¦ÀßÄê¤ò named.conf ¤Ë²Ã¤¨¤Æ¡¤zone "sub17.cl.math.sci.osaka-u.ac.jp" ¤Î´ÉÍý¤ò¼«Ê¬¤Ç(¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤È¤·¤Æ)¹Ô¤¦! ¤ÈÀë¸À¤¹¤ë.
¤â¤Á¤í¤ó¡¤¤³¤¦¤·¤¿ÀßÄê¤ò²Ã¤¨¤¿¤é
named-checkconf
¤È¤·¤ÆÀßÄê¥ß¥¹¤¬¤Ê¤¤¤«¥Á¥§¥Ã¥¯¤·¤Æ¤ª¤³¤¦.
** ¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤ÎÀßÄê - ¥¾¡¼¥ó¥Õ¥¡¥¤¥ë ¤ÎÀßÄê [#v018ab61]
&ref(./notes.png); ¼¡¤Ë¡¤´Î¿´¤Î¾ðÊó¤ò½ñ¤¤³¤à¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤òºî¤ê¡¤ÀßÄꤷ¤è¤¦.
¾å¤ÎÎã¤Î¾ì¹ç¤À¤È¡¤master/sub17.db ¤È¤Ê¤ë.
¤Þ¤º¡¤¿÷·Á¤Ç¤¢¤ë empty.db ¤ò¥³¥Ô¡¼¤·¤Æ¥Õ¥¡¥¤¥ë¤òºî¤í¤¦.
Î㤨¤Ð¡¤
cd /etc/namedb/master
cp empty.db sub17.db
¤È¤¹¤ë. ¤½¤ì¤«¤é¡¤sub17.db ¤òŬµ¹ÊÔ½¸¤·¤Æ¡¤º£¤ÎÎã¤Ç¤Ï
> $TTL¡¡¡¡¡¡¡¡3600
> @¡¡¡¡¡¡¡¡¡¡¡¡¡¡IN¡¡¡¡¡¡¡¡¡¡¡¡SOA¡¡¡¡¡¡¡¡¡¡q17.cl.math.sci.osaka-u.ac.jp.¡¡root.q17.cl.math.sci.osaka-u.ac.jp.¡¡¡¡(
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2009012301¡¡¡¡¡¡¡¡¡¡¡¡;¡¡Serial
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡3600¡¡¡¡¡¡¡¡;¡¡Refresh
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡900¡¡¡¡¡¡¡¡¡¡;¡¡Retry
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡3600000¡¡;¡¡Expire
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡3600¡¡)¡¡¡¡;¡¡Minimum
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡IN¡¡¡¡¡¡¡¡¡¡¡¡NS¡¡¡¡¡¡¡¡¡¡¡¡q17.cl.math.sci.osaka-u.ac.jp.
> test01¡¡¡¡IN¡¡¡¡¡¡¡¡¡¡¡¡A¡¡¡¡¡¡¡¡¡¡¡¡¡¡192.168.125.190
> test02¡¡¡¡IN¡¡¡¡¡¡¡¡¡¡¡¡A¡¡¡¡¡¡¡¡¡¡¡¡¡¡192.168.125.191
> test03¡¡¡¡IN¡¡¡¡¡¡¡¡¡¡¡¡A¡¡¡¡¡¡¡¡¡¡¡¡¡¡192.168.125.192
> test04¡¡¡¡IN¡¡¡¡¡¡¡¡¡¡¡¡A¡¡¡¡¡¡¡¡¡¡¡¡¡¡192.168.125.193
> test05¡¡¡¡IN¡¡¡¡¡¡¡¡¡¡¡¡A¡¡¡¡¡¡¡¡¡¡¡¡¡¡192.168.125.194
¤Ê¤É¤È¤¹¤ë.
°Ê²¼¡¤ÆâÍƤò¾¯¤·ÀâÌÀ¤·¤è¤¦.
++ SOA ¤Î¹àÌܤϡ¤¤³¤Î¾ðÊó¤Î¡ÖÀÕǤ¤ò¤È¤ë¥Û¥¹¥È¤È¡¤ÀÕǤ¼Ô¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¡¤¥·¥ê¥¢¥ëÃÍ¡¤Í¸ú»þ´ÖÅù¡×¤Ç¤¢¤ë.
¤Á¤Ê¤ß¤Ë¡¤¥·¥ê¥¢¥ëÃͤϤ³¤Î¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤Î¡Ö¿·¤·¤µ¡×¤ò¼¨¤¹Ãͤǡ¤¤³¤ì¤¬Â礤¯¤Ê¤ë¤È¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤¬¹¹¿·¤µ¤ì¤¿¤³¤È¤È¤Ê¤ê¡¤¥Í¥Ã¥È¥ï¡¼¥¯¤Ë¹¹¿·¤µ¤ì¤¿¾ðÊó¤¬Î®¤ì¤ë¤³¤È¤Ë¤Ê¤ë.
&ref(./warning.png); ¤À¤«¤é¡¤¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤òÊÔ½¸, ¹¹¿·¤·¤¿¤éɬ¤º Serial ÃͤòÁý¤ä¤·¤Æ¤ª¤«¤Ê¤¤¤È¤¤¤±¤Ê¤¤. ¤Á¤Ê¤ß¤Ë Emacs ¤ò»È¤Ã¤Æ¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤ò zone ¥â¡¼¥É¤ÇÊÔ½¸¤¹¤ë¤È¡¤Serial Ãͤ¬¼«Æ°Åª¤ËÁý¤¨¤ë. ¤¢¤ê¤¬¤¿¤¤¡Ä
&br;
++ NS ¤Î¹àÌܤϡ¤¤³¤Î¾ðÊó¤Ë¤Ä¤¤¤Æ¤ÎÌ䤤¹ç¤ï¤»¤ËÅú¤¨¤ë¥Í¡¼¥à¥µ¡¼¥Ð(¤³¤Î¾ì¹ç¤Ï¼«Ê¬).
&ref(./warning.png); NS ¤ÎÀßÄê¤Ï A ¤Ê¤É¤ÎÀßÄê¤è¤ê¤âÁ°¤Ç¤Ê¤¤¤È¤Þ¤º¤¤¤è¤¦¤À.
&ref(./warning.png); NS ¤ÎÀßÄê¤Ï FQDN ¤Ç½ñ¤¯¤È¤¤¤¦¤³¤È¤Ë¤âÃí°Õ¤·¤è¤¦.
&br;
++ A ¤Çʤó¤Ç¤¤¤ë¹àÌܤ¬¡¤´Î¿´¤Î¡Ö´ÉÍý¤·¤Æ¤¤¤ë¡×¾ðÊ󤽤Τâ¤Î.
¤µ¤Æ¡¤¤³¤ì¤Ç zone ÀßÄê¥Õ¥¡¥¤¥ë¤È¤·¤Æ¤Ï¤È¤ê¤¢¤¨¤ºÆ°¤¯¤Ï¤º¤Ç¤¢¤ë.
¤Þ¤¿¡¤ÀßÄêÁ´ÂΤˤĤ¤¤Æ¤Ï¡¤¤Ä¤®¤Î¹àÌܤòÃΤäƤ¤¤ì¤ÐÂçÂÎÂç¾æÉפÀ.
| ¹àÌÜ | ÀâÌÀ |h
| ³Æ¹Ô¤Î½ñ¤Êý | ''̾Á° IN ¥ì¥³¡¼¥É̾ ÀßÄê'' ¤È½ñ¤«¤ì¤ë¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë |
| @ | named.conf ¤Ç»ØÄꤷ¤¿¤½¤Î¥¾¡¼¥ó̾. ¾å¤ÎÎã¤À¤È sub17.cl.math.sci.osaka-u.ac.jp. ¤È¤Ê¤ë. |
| ²¿¤â½ñ¤¤¤Æ¤Ê¤¤¤È¤³¤í | @ ¤È²ò¼á¤µ¤ì¤ë. ʬ¤«¤ê¤Ë¤¯¤¤¤¬¡¤''IN NS q17.cl.math.sci.osaka-u.ac.jp.'' ¤Î¹ÔƬ¤¬¤½¤ì¤ËÁêÅö¤¹¤ë. |
| .¤Ç½ª¤ï¤Ã¤Æ¤¤¤Ê¤¤¥Þ¥·¥ó̾Åù | .@ ¤¬Êä¤ï¤ì¤ë |
&ref(./notes.png); ¤µ¤Æ¡¤¤³¤Î zone ¥Õ¥¡¥¤¥ë¤ò¥Á¥§¥Ã¥¯¤·¤è¤¦.
named-checkzone ¥¾¡¼¥ó̾ ¥Á¥§¥Ã¥¯¤·¤¿¤¤¥¾¡¼¥ó¥Õ¥¡¥¤¥ë
¤È¤¹¤ì¤Ð¥Á¥§¥Ã¥¯¤Ç¤¤ë. ¤³¤ÎÎã¤Ç¤Ï¡¤
named-checkzone sub17.cl.math.sci.osaka-u.ac.jp ./sub17.db
¤È¤·¤Æ¡¤¥¨¥é¡¼¤¬¤Ç¤Ê¤±¤ì¤Ð¤è¤¤.
¤¦¤Þ¤¯¤¤¤Ã¤¿¤é¡¤BIND ¤ËÀßÄê¥Õ¥¡¥¤¥ë¤òÆɤßľ¤µ¤»¤è¤¦. ¤½¤ì¤Ë¤Ï
rndc reload
¤È¤¹¤ì¤Ð¤è¤¤.
¤µ¤Æ¡¤Æ°ºî¤ò³Îǧ¤·¤è¤¦. ¤½¤ì¤Ë¤Ï¡¤Â¾¤Î¥Þ¥·¥ó¤«¤é¤³¤Î¾ì¹ç¤Ï
dig test01.sub17.cl.math.sci.osaka-u.ac.jp
¤Ê¤É¤È¤·¤Æ
> ;; ANSWER SECTION:
> test01.sub17.cl.math.sci.osaka-u.ac.jp. 2959 IN A 192.168.125.190
¤¬ÆÀ¤é¤ì¤ì¤Ð¤è¤¤.
** ¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤ÎÀßÄê [#vecc2323]
&ref(./notes.png); ¼¡¤Ë¡¤¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤ÎÀßÄê¤ò¤·¤Æ¤ß¤è¤¦.
¤³¤ì¤Ï¥Þ¥¹¥¿¡¼¤è¤ê¡ÖÀßÄê¤Ï¡×´Êñ¤Ç¤¢¤ë¡Ä¤¬¡¤¥Þ¥¹¥¿¡¼¤È¥¹¥ì¡¼¥Ö¤Î´Ø·¸¤òÍý²ò¤·¤Æ¤¤¤Ê¤¤¤È¤Ç¤¤Ê¤¤¤Î¤Ç¡¤¤è¤¯¤è¤¯¹Í¤¨¤è¤¦.
Î㤨¤Ð¡¤sub16.cl.math.sci.osaka-u.ac.jp ¥É¥á¥¤¥ó(¥Þ¥¹¥¿¡¼¥µ¡¼¥Ð¤Ï q16.cl...) ¤Î¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤ò q17 ¤¬°ú¤¼õ¤±¤ë¤È¤·¤è¤¦.
¤³¤Î»þ¤Ë¹Ô¤¦ÀßÄê¤ÏÆ󥫽ê¤À¤±¤Ç¤¢¤ë.
*** ¥Þ¥¹¥¿¡¼Â¦¤Î¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤Ë¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤ò NS ¤È¤·¤Æ²Ã¤¨¤ë. [#if1cfb63]
¶ñÂÎŪ¤Ë¤Ï¡¤
> IN NS q17.cl.math.sci.osaka-u.ac.jp.
¤ò¥µ¡¼¥Ð q16 ¤Î¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤Ë²Ã¤¨¤Æ¤ª¤¯¤À¤±¤Ç¤¢¤ë(¤¿¤À¤·¡¤¥ì¥³¡¼¥É A ¤ÎÀßÄêÅù¤è¤êÁ°¤Ë½ñ¤¤¤Æ¤ª¤³¤¦).
*** ¥¹¥ì¡¼¥Ö¦¤Î named.conf ¤Ç¥¹¥ì¡¼¥Ö¥µ¡¼¥ÐÀë¸À¤ò¤¹¤ë [#dca8daa1]
¥µ¡¼¥Ð q17 ¤Î named.conf ¤Ë
> zone¡¡"sub16.cl.math.sci.osaka-u.ac.jp"¡¡{
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡type¡¡slave;
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡masters¡¡{¡¡192.168.125.106;¡¡};¡¡¢«¡¡q16¡¡¤Î¥¢¥É¥ì¥¹
> ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡file¡¡"slave/sub16.db";
> };
¤È½ñ¤²Ã¤¨¤ë¤À¤±¤Ç¤¢¤ë. "slave/sub16.db" ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤Ï¾¡¼ê¤Ë¥³¥Ô¡¼¤µ¤ì¤Æ¤¯¤ë¤Î¤Çºî¤Ã¤¿¤ê¤¤¤¸¤Ã¤¿¤ê¤·¤Ê¤¯¤Æ¤è¤¤(¤È¤¤¤¦¤«¡¤¤¤¤¸¤Ã¤Æ¤Ï¤¤¤±¤Ê¤¤).
&ref(./notes.png); 狼¤ÈÁȤó¤Ç¡¤¥¹¥ì¡¼¥Ö¥µ¡¼¥ÐÀßÄê¤Þ¤Ç¹Ô¤Ã¤Æ¤ß¤è¤¦.
¤Þ¤¿¡¤Æ°ºî³Îǧ¤ò¹Ô¤Ã¤Æ¤ß¤è¤¦.
¶ñÂÎŪ¤Ë¤Ï¡¤ÀßÄê/Æ°ºî¤Þ¤Ç¤Ç¤¤¿¤È»×¤Ã¤¿¤é¡¤¾å¤ÎÎã¤Ç¸À¤¨¤Ð¾¤Î¥Þ¥·¥ó¤«¤é
dig -t NS sub16.cl.math.sci.osaka-u.ac.jp
¤Ê¤É¤È¤·¤Æ¤ß¤Æ¡¤sub16.cl.math.sci.osaka-u.ac.jp ¤Î NS ¤È¤·¤Æ¡¤ÀßÄꤷ¤¿Ê£¿ô¤Î¥µ¡¼¥Ð¤¬É½¼¨¤µ¤ì¤ë¤³¤È¤ò³Îǧ¤¹¤ì¤Ð¤è¤¤.
¾¤Ë¤â¡¤¥¹¥ì¡¼¥Ö¥µ¡¼¥Ð¤Î /etc/namedb/slave ¤Ë¥³¥Ô¡¼¤µ¤ì¤Æ¤¯¤ë¤Ï¤º¤Î¥¾¡¼¥ó¥Õ¥¡¥¤¥ë¤òľÀÜį¤á¤Æ¤ß¤ë¤È¤¤¤¦¼ê¤â¤¢¤ë.
** µÕ°ú¤ÀßÄê [#zaf66a57]
¤³¤ì¤Ï¼Â¤Ï¡Ö¿Æ¥µ¡¼¥Ð¤Î»ö¾ð/ÀßÄê¡×¤ÇÂ礤¯ÊѤï¤Ã¤Æ¤¯¤ë¤Î¤Ç¤¢¤Þ¤ê°ìÈÌŪ¤Ç¤Ê¤¤¡Ä ¤Î¤Ç¤È¤ê¤¢¤¨¤º¾Êά¤·¤Æ¤ª¤¯¡¥
* ¥ì¥Ý¡¼¥È [#n180fa22]
* ¥ì¥Ý¡¼¥È [#o66d2b43]
ÅÓÃæ¤Ç¡ÖÄ´¤Ù¤è¡×¤È»Ø¼¨¤µ¤ì¤¿»ö¹à¤Ë¤Ä¤¤¤ÆÄ´ºº¤ò¹Ô¤¤¡¤Êó¹ð¤»¤è.
º£²ó¤Ï NS, A ¥ì¥³¡¼¥É¤·¤«ÀßÄꤷ¤Ê¤«¤Ã¤¿¤¬¡¤MX Åù¤âÀßÄꤷ¤Æ¤ß¤è.
// ¤Þ¤¿¡¤5¤Ä¤Î IP ¤ò»È¤¤¤¤Ã¤Æ¤ß¤è.
¤Þ¤¿¡¤ËÜÆü¹Ô¤Ã¤¿ºî¶È¤Ë¤Ä¤¤¤ÆÊó¹ð¤»¤è.
¤â¤Á¤í¤ó³Æ¼«¤Î
+ ½ê°(³ØÉô¡¤³Ø²Ê)
+ ³ØÀÒÈÖ¹æ
+ ³Øǯ
+ »á̾
+ Æü»þ
+ ´Î¿´¤Î¥ì¥Ý¡¼¥ÈÆâÍÆ(ÆÀ¤¿Ãθ«¡¤ºî¶È¤Ë¤Ä¤¤¤Æµ¤¤Å¤¤¤¿¤³¤ÈÅù)
¤ò½ñ¤¯¤Î¤ò˺¤ì¤Ê¤¤¤è¤¦¤Ë.
* about Icons [#p90706c9]
Some icons in this page are downloadable at [[ICONFINDER:http://www.iconfinder.net/]].
The "note" icon &ref(./notes.png); designed by [[Marco Martin:http://www.notmart.org/]] is distributed with the LGPL licence
and the "warning" icon &ref(./warning.png); designed by [[Alexandre Moore:http://nuovext.pwsp.net/]] with the GPL licence.
Thank you Marco and Alexandre!
// &ref(./notes.png);
// &ref(./warning.png);