°Ô½Ã¹° 260°Ç
   
[Redhat7] DNS master slave ±¸¼º ÀÛ¾÷ -02 [ bind / named / dns ]
±Û¾´ÀÌ : theko ³¯Â¥ : 2020-01-16 (¸ñ) 19:09 Á¶È¸ : 1743
¸¶½ºÅÍ(Primary, Main) / ½½·¹À̺ê(Secondary, Backup) ³×ÀÓ ¼­¹ö ±¸Ãà

¸¶½ºÅÍ ³×ÀÓ¼­¹ö°¡ µ¿ÀÛÇÏÁö ¾ÊÀ» °æ¿ì ½½·¹ÀÌºê ³×ÀÓ¼­¹ö°¡ ¸¶½ºÅ͸¦ ´ë½ÅÇÏ¿© Ŭ¶óÀ̾ðÆ®¿¡°Ô µµ¸ÞÀÎ/IP ÁÖ¼Ò Á¤º¸¸¦ Á¦°øÇØ¾ß ÇÑ´Ù.

Á¤º¸¸¦ Á¦°øÇϱâ À§ÇÏ¿© DB ÆÄÀÏÀÌ ÇÊ¿äÇÏ´Ù. -> ¸¶½ºÅÍ ¼­¹öÀÇ DB ÆÄÀÏÀ» °¡Á®¿Í¾ß ÇÑ´Ù.


¸¶½ºÅÍ ³×ÀÓ¼­¹ö ¼³Á¤




www.yyy.com µµ¸ÞÀÎÀÇ Á¤º¸¸¦ °¡Áö°í ÀÖ´Â DB ÆÄÀÏÀ» Server-B(100.100.100.120)¿¡°Ô Àü¼Û Çã¿ë(allow-transfer)




DB ÆÄÀÏ ¼öÁ¤

-> ½½·¹ÀÌºê ³×ÀÓ¼­¹ö ¼³Á¤À» À§ÇÏ¿© ½½·¹ÀÌºê ³×ÀÓ¼­¹öÀÇ IP Ãß°¡



named µ¥¸ó Àç½ÃÀÛ -> º¯°æ Á¤º¸ Àû¿ë


¸¶½ºÅÍ ³×ÀÓ¼­¹ö°¡ yyy.com¿¡ ´ëÇÑ Á¤º¸¸¦ Á¦°øÇÒ Áغñ¸¦ ¿Ï·áÇß´Ù.


½½·¹ÀÌºê ³×ÀÓ¼­¹ö ¼³Á¤



Server-B Á¢¼Ó ÈÄ bind ÆÐÅ°Áö ¼³Ä¡




±âº» ¼³Á¤ º¯°æ



¸¶½ºÅÍ¿Í µ¿ÀÏÇÏ°Ô yyy.com¿¡ ÇØ´çÇÏ´Â Á¸ »ý¼º


type slave;    Á¤º¸¸¦ ¸¶½ºÅͷκÎÅÍ Á¦°ø¹ÞÀ» slave

file "slaves/yyy.zone";    ¸¶½ºÅͷκÎÅÍ Á¤º¸¸¦ Á¦°ø¹ÞÀ» °æ¿ì ÀúÀåµÉ DB ÆÄÀÏÀÇ °æ·Î

masters { 100.100.100.110; };    DB ÆÄÀÏ Àü¼ÛÇØ ÁÙ ¸¶½ºÅÍÀÇ IP ÁÖ¼Ò


µ¥¸óÀ» Àç½ÃÀÛ -> ¸¶½ºÅͷκÎÅÍ DB ÆÄÀÏÀ» ¹Þ´Â´Ù.

¸¶½ºÅÍÀÇ ·Î±× ÆÄÀÏ¿¡¼­ DB ÆÄÀÏÀ» º¸³½ °ÍÀ» È®ÀÎ



slaves µð·ºÅ͸® ¾Æ·¡¿¡ DB ÆÄÀÏ È®ÀÎ!






°øÅë ¼³Á¤(Server-A, Server-B, Client-Linux)

#vi /etc/resolv.conf

nameserver 100.100.100.110

nameserver 100.100.100.120

 

#vi /etc/sysconfig/network-scripts/ifcfg-bond0

DNS1=100.100.100.110

DNS2=100.100.100.120

 

#service iptables stop

#chkconfig iptables off

#setenforce 0

#vi /etc/sysconfig/selinux

7¹ø Çà SELINUX=disabled

ÀÌÁ¦ ¸¶½ºÅÍ ³×ÀÓ ¼­¹ö°¡ µ¿ÀÛÇÏÁö ¾ÊÀ» °æ¿ì ½½·¹ÀÌºê ³×ÀÓ ¼­¹ö°¡ ´ë½ÅÇÏ¿© Á¤º¸¸¦ Á¦°øÇÏ´ÂÁö Å×½ºÆ® Çغ¸°Ú½À´Ï´Ù.

¸¶½ºÅÍ ³×ÀÓ ¼­¹ö Server-AÀÇ named µ¥¸ó ÁßÁö




½½·¹ÀÌºê ³×ÀÓ ¼­¹ö Server-B¿¡¼­ nslookup ¸í·É¾î Á¤¹æÇâ Á¶È¸ ½Ãµµ -> ¼º°ø



¡Ø ½½·¹ÀÌºê ³×ÀÓ¼­¹ö¿¡¼­ ¿ª¹æÇâ Á¶È¸µµ °¡´ÉÇϵµ·Ï ¼³Á¤
/etc/named.rfc1912.zones

¸¶½ºÅÍ°¡ ½½·¹À̺꿡°Ô DB ÆÄÀÏ Àü¼Û Çã¿ë

/etc/named.rfc1912.zones

½½·¹À̺ê´Â DB ÆÄÀÏ ¿äû




ÆÄÀÏ ´Ù¿î ¹ÞÀ½


yyy.rev.zone ÆÄÀÏ ´Ù¿î È®ÀÎ



½½·¹À̺꿡¼­ ¿ª¹æÇâ Á¶È¸ ½Ãµµ -> ¼º°ø!!!!




À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

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