°Ô½Ã¹° 260°Ç
   
[centOS6] bind recursion ¼³Á¤ ¼³¸í [ dns / Àç±ÍÀû ]
±Û¾´ÀÌ : theko ³¯Â¥ : 2020-06-08 (¿ù) 15:47 Á¶È¸ : 3125
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";
 };
};



theko 2020-06-09 (È­) 11:50
IP´Â ¿¹Á¦ÀÌ´Ï ¹«½ÃÇϼ¼¿ä.
À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com