bind recursion ¼³Á¤ ¼³¸í
========================¿¹¿Ü»çÇ×================================================
==> ¾Æ·¡´Â ¿ÜºÎ, ³»ºÎÅ×½ºÆ®¸¦ ÇÒ¶§ ÀÌ°í, Ȥ ³»ºÎ¿¡¼ Å×½ºÆ®¸¦ Çҽÿ¡´Â
¾Æ·¡¿Í °°ÀÌ allow-query ºÎºÐÀ» ¼öÁ¤ÇØÁà¾ßÇÑ´Ù.
options
{
....»ý·«
allow-query { 192.168.200.0/24 ; };
# allow-query { any; };
.....»ý·«
};
================================================================================
recursion yes;
recursion ¿É¼Ç yes·Î º¯°æ ½Ã ÀÏ¹Ý µµ¸ÞÀο¡ ´ëÇÑ ÁúÀǵµ ÇØÁØ´Ù
ÀϹݵµ¸ÞÀÎÀ̶õ º»ÀÎÀÌ °¡Áö°í ÀÖÁö ¾ÊÀº µµ¸ÞÀÎÀ» »ó´Ü DNS¿¡ ¹°¾îºÁ¼ ¾Ë·ÁÁØ´Ù.
ex) º»ÀÎÀÌ test.com Àε¥, theko.co.kr¸¦ ¹°¾îºÁµµ ¾Ë·ÁÁØ´Ù.
recursion no;
acl trust { 127.0.0.1/32; 211.239.151.211/32; };
allow-recursion { trust; }; //À§ IP´ë¿ª¸¸ ³» µµ¸ÞÀο¡ ´ëÇØ ÁúÀÇ°¡ °¡´ÉÇÏ´Ù. º¸Åë »ç¿ë¼¹öIP´ë¿ª
or
allow-recursion { 127.0.0.1/32; 211.239.151.211/32; }
recursion ¿É¼Ç no·Î º¯°æ ½Ã ÀÏ¹Ý µµ¸ÞÀο¡ ´ëÇÑ ÁúÀÇ´Â ÀÀ´äÇÏÁö ¾Ê½À´Ï´Ù. º»ÀÎÀÌ ¼ÒÀ¯ÇÑ µµ¸ÞÀο¡ ´ëÇؼ¸¸ ´äº¯À» ÁØ´Ù.
ex) º»ÀÎÀÌ test.com Àε¥ theko.co.kr ¸¦ ¹°¾îº¸¸é ´äº¯À» ¾ÈÇÑ´Ù. ´Ü, a.test.com ¸¦ ¹°¾îº¸¸é
º»ÀÎÀÌ ¼ÒÀ¯ÇÏ°í ÀÖ´Ù¸é ¾Ë·ÁÁØ´Ù. À§ Çã¿ëIP ´ë¿ª¿¡¼ ÁúÀǸ¦ Çß´Ù¸é
-----------------------------------------------------
view "internal"
{
match-clients { localnets; };
match-destinations { localnets; };
recursion yes; // ³»ºÎ ³×Æ®¿öÅ© Ŭ¶óÀ̾ðÆ® recursive ÁúÀÇ Çã¿ë
include "/var/named/named.root";
zone "test.test" {
type master;
file ¡°test.zone";
};
};
view "external"
{
match-clients { any; };
match-destinations { any; };
recursion no; // ¿ÜºÎ ³×Æ®¿öÅ© Ŭ¶óÀ̾ðÆ® recursive ÁúÀÇ ±ÝÁö
include "/var/named/named.root";
zone ¡°test.test" {
type master;
file ¡°test.zone";
};
};