¸¶½ºÅÍ(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 ÆÄÀÏ ´Ù¿î È®ÀÎ
½½·¹À̺꿡¼ ¿ª¹æÇâ Á¶È¸ ½Ãµµ -> ¼º°ø!!!!