´ÙÀ½ ÀÌÀü Â÷·Ê

2. Name Server ¿î¿µ

2.1 Name Server À¯Çü

³×ÀÓ¼­¹ö´Â Primary, Secondary, Cache only server·Î ±¸ºÐµÈ´Ù.

Primary server´Â ÇØ´ç µµ¸ÞÀÎÀ» °ü¸®ÇÏ´Â ÁÖ ³×ÀÓ¼­¹öÀÌ°í, Secondary server´Â ƯÁ¤ µµ¸ÞÀο¡ ´ëÇÑ back-up copy¸¦ À¯ÁöÇÏ´Â ¼­¹öÀÌ´Ù. Secondary´Â Primary°¡ ºñÁ¤»ó ¿îÇàµÉ ¶§¿Í ºÎÇϸ¦ ºÐ»ê½ÃÅ°±â À§ÇØ ¿î¿ëÇϸç, ´Ù¼ö°¡ Á¸ÀçÇÒ ¼ö ÀÖ´Ù. º¸Åë µµ¸ÞÀÎÀ» °ü¸®Çϱâ À§Çؼ­´Â Primary, Secondary ¼­¹ö°¡ ÇÊ¿äÇÏ°Ô µÇ¸ç, Secondary´Â ¿øÄ¢ÀûÀ¸·Ð ¿ÜºÎ ³×Æ®¿÷¿¡ À§Ä¡½ÃÄÑ Á¤Àü µîÀÇ »çÅ·ΠPrimary°¡ ´Ù¿îµÇ¾úÀ» ¶§¸¦ ´ëºñÇÑ´Ù. µû¶ó¼­, µµ¸ÞÀÎÀ» ¿î¿µÇϱâ À§Çؼ­´Â ÃÖ¼Ò 2´ë(Primary * 1, Secondary * n) ÀÌ»óÀÇ ³×ÀÓ¼­¹ö°¡ ¿ä±¸µÈ´Ù.(±â¼úÀûÀ¸·Î´Â Primary ¸¸À¸·Îµµ ¿î¿µÀÌ °¡´ÉÇÏ°í, ResolverÀÇ ÀÔÀå¿¡¼­´Â Primary¿Í Secondary°¡ ±¸ºÐµÇÁö ¾Ê´Â´Ù.)

Cache only server´Â µµ¸ÞÀο¡ ´ëÇÑ µ¥ÀÌÅ͸¦ °ü¸®ÇÏÁö´Â ¾Ê°í, resolving¸¸À» ó¸®ÇØ ÁØ´Ù. ¸¸¾à, º»»ç¿Í Áö»ç°¡ ÀÖ°í ÀÌ È¸»çÀÇ Primary, Secondary Name server°¡ ¸ðµÎ º»»ç¿¡ À§Ä¡ÇÑ´Ù°í ÇÒ ¶§, Áö»ç¿¡ À§Ä¡ÇÑ ³×Æ®¿öÅ© À¯ÀúµéÀº Local DNS server°¡ ¾ø°Ô µÈ´Ù. ÀÌ·² °æ¿ì µµ¸ÞÀÎ resolvingÀÌ ¿ä±¸µÉ ¶§¸¶´Ù ´Ù¸¥ ³×Æ®¿öÅ©(º»»ç)·Î Á¢¼ÓÀ» ½ÃµµÇÏ°Ô µÇ¹Ç·Î ¾à°£ÀÇ µô·¹ÀÌ°¡ »ý±â°Ô µÇ¸ç, º»»ç ³×Æ®¿öÅ©°¡ ´ÜÀý µÇ¾úÀ»½Ã Áö»çµµ ½ÇÁúÀûÀ¸·Î ÀÎÅÍ³Ý »ç¿ëÀÌ ºÒ°¡´ÉÇÑ ´ÜÁ¡ÀÌ ÀÖ´Ù. ÀÌ·² ¶§ Áö»ç¿¡ Cache only server¸¦ ¿î¿ëÇϸé È¿°úÀûÀ¸·Î ¹®Á¦¸¦ ÇØ°áÇÒ ¼ö ÀÖ´Ù.

2.2 BIND(Berkeley Internet Name Daemon) ¼³Ä¡

Name server¸¦ ¿î¿ëÇϱâ À§Çؼ­´Â ¼­¹öÃø µ¥¸ó ÇÁ·Î±×·¥ÀÌ ÇÊ¿äÇÏ°Ô µÇ´Âµ¥, ÀÌÁß BIND´Â db ÆÄÀÏÀÇ ±¸¼ºÀÌ ¼Õ½±°í Ç¥ÁØÀ» Ãæ½ÇÈ÷ µû¸¥ °ËÁõµÈ µµ±¸·Î¼­ ÀÎÅͳݿ¡¼­ °¡Àå ³Î¸® »ç¿ëµÈ´Ù. ´ëºÎºÐÀÇ Unix ½Ã½ºÅÛ¿¡¼­´Â BIND°¡ ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖ´Ù. /usr/sbin µð·ºÅ丮¿¡ in.named ȤÀº named°¡ Á¸ÀçÇÔÀ» È®ÀÎÇÏ°í, BIND°¡ ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖÀ» °æ¿ì¿¡´Â ´ÙÀ½°ú °°ÀÌ ¼³Ä¡µÈ BINDÀÇ ¹öÀüÀ» È®ÀÎÇÑ´Ù. (BIND°¡ µ¿ÀÛÁßÀÌ¿©¾ß ÇÔ)

$ dig @ns.nobreak.com txt chaos version.bind. | grep VERSION
VERSION.BIND.           0S CHAOS TXT    "8.2"

http://www.isc.org/bind.html¿¡¼­ BINDÀÇ ÃֽŹöÁ¯À» È®ÀÎÇÏ°í, ¹öÀüÂ÷ÀÌ°¡ ¸¹°Å³ª ÇöÀç ¹öÀü¿¡ ½É°¢ÇÑ ¹®Á¦°¡ º¸°íµÇ¾ú´Ù¸é, ¾÷±×·¹À̵带 °í·ÁÇÏ°í, BIND-4°¡ ¼³Ä¡µÇ¾î ÀÖ´Ù¸é, BIND-8·Î ¸¶À̱׷¹À̼ÇÇÏ¿© »õ·Î¿î È帧¿¡ Á¶ÀÎÇϴ°͵µ ³ª»ÚÁö ¾Ê°Ú´Ù.

BINDÀÇ ¼³Ä¡´Â ¸Å¿ì °£´ÜÇÏ´Ù. ftp://ftp.isc.org/isc/bind/src/¿¡¼­ ÃֽŠ¹öÀüÀÇ ¼Ò½º¸¦ ³»·Á¹Þ¾Æ, ¾ÐÃàÀ» ǬÈÄ ´ÙÀ½°ú °°Àº ¸í·ÉÀ» ÀÔ·ÂÇÏ´Â °ÍÀÌ ¼³Ä¡¿¡ ÇÊ¿äÇÑ ÀüºÎÀÌ´Ù.

# make clean depend all install

±×¸®°í, ½Ã½ºÅÛ rc ½ºÅ©¸³Æ®¸¦ ÀûÀýÈ÷ ¼öÁ¤ÇÏ¿© ½Ã½ºÅÛ ºÎÆýà BIND°¡ ÀÚµ¿À¸·Î ±¸µ¿µÉ ¼ö ÀÖµµ·Ï ÇÑ´Ù. (FreeBSD: /etc/rc.conf, /etc/rc.network | Solaris: /etc/init.d/inetsvc | Linux /etc/rc.d/init.d/named)

Windows NT, OS/2, MacOS µî¿¡¼­ BIND¸¦ ¿î¿ëÇÏ°íÀÚ ÇÑ´Ù¸é, ´ÙÀ½ ÆäÀÌÁö¸¦ Âü°íÇÏÀÚ.

2.3 ÆÛºí¸¯ µµ¸ÞÀÎ(Public Domain) ½Åû

Primary, Secondary ³×ÀÓ¼­¹ö°¡ ÁغñµÇ¾ú°í, ½ÅûÇÒ µµ¸ÞÀÎÀÌ °áÁ¤µÇ¾ú´Ù¸é, »óÀ§ µµ¸ÞÀÎ °ü¸® ±â°ü(``YourDomain.COM''Àº Internic, YourDomain.CO.KRÀº Krnic)¿¡ µµ¸ÞÀÎÀ» ½ÅûÇÏ¿© ¹ß±Þ(³×ÀÓ½ºÆäÀ̽º»ó¿¡ ¸µÅ©) ¹Þ°Ô µÈ´Ù. µµ¸ÞÀÎ ½Åû¾ç½ÄÀº ±â°ü¸¶´Ù Á¶±Ý¾¿ »óÀÌÇÏÁö¸¸ ÀϹÝÀûÀ¸·Î »ç¿ë±â°ü, Ã¥ÀÓÀÚ, °ü¸®ÀÚ, °áÁ¦ÀÚ , ³×ÀÓ¼­¹ö Á¤º¸°¡ ¿ä±¸µÈ´Ù. ÀÌÁß ½Åû µµ¸ÞÀÎÀ» ³×ÀÓ½ºÆäÀ̽º¿¡ ¸µÅ©Çϱâ À§ÇÑ ³×ÀÓ¼­¹ö Á¤º¸´Â ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºÇÑ´Ù.

2.   Complete Domain Name.......: NOBREAK.COM
7a.  Primary Server Hostname....: NS.NOBREAK.COM
7b.  Primary Server Netaddress..: 210.105.79.2
8a.  Secondary Server Hostname..: NS2.NOBREAK.COM
8b.  Secondary Server Netaddress: 210.105.79.3

``NOBREAK.COM''ÀÌ µî·ÏµÇ¾ú´Ù´Â ¸Þ½ÃÁö¸¦ ¹Þ¾Ò´Ù¸é, ´ÙÀ½°ú °°ÀÌ ÇØ´ç µµ¸ÞÀÎÀÇ µî·Ï ¿©ºÎ¸¦ È®ÀÎÇÑ´Ù.

$ nslookup -type=ns nobreak.com
Server:  ns.nobreak.com
Address:  0.0.0.0

nobreak.com     nameserver = ns.nobreak.com
nobreak.com     nameserver = ns2.nobreak.com
ns.nobreak.com  internet address = 210.105.79.2
ns2.nobreak.com internet address = 210.105.79.3

ÇØ´ç µµ¸ÞÀο¡ ´ëÇÑ ³×ÀÓ¼­¹ö°¡ ½ÅûÇÑ °Í°ú °°ÀÌ Ç¥½ÃµÈ´Ù¸é, µî·ÏÀÌ ¹Ù¸£°Ô ÁøÇàµÈ °ÍÀÌ´Ù. ¾ÆÁ÷ µî·ÏÀÌ ¾ÈµÇ¾ú´Ù¸é, ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö¸¦ º¼ ¼ö ÀÖ´Ù.

*** local.name.server can't find nobreak.com.: Non-existent host/domain

"µµ¸ÞÀÎ NOBREAK.COMÀ» ½ÅûÇϴµ¥ ¾î¶»°Ô ±× ÇϺο¡ ÀÖ´Â NS.NOBREAK.COM, NS2.NOBREAK.COMÀ» »ç¿ëÇÒ¼ö ÀÖ½À´Ï±î?" "NS.NOBREAK.COMÀº NOBREAK.COM µµ¸ÞÀÎ ½ÅûÀÌ ¿Ï·áµÈ ÈÄ ³×ÀÓ¼­¹ö¿¡¼­ ¼³Á¤ ÇØÁÖ¾î¾ß »ç¿ëÇÒ ¼ö ÀÖÁö ¾Ê½À´Ï±î?"¶ó´Â Àǹ®ÀÌ µé ¼ö Àִµ¥, ¾î¶² µµ¸ÞÀÎÀ» ÇÏÀ§ µµ¸ÞÀÎÀ¸·Î À§ÀÓÇϱâ À§ÇÑ ³×ÀÓ¼­¹ö Á¤º¸´Â »óÀ§ µµ¸ÞÀο¡¼­ °ü¸®µÇ±â ¶§¹®¿¡ °¡´ÉÇÏ´Ù. (Âü°í: ``±Û·ç ·¹ÄÚµå'')

2.4 ¹ö½º µµ¸ÞÀÎ(Inverse Domain) ½Åû

Àιö½º µµ¸ÞÀÎÀº IP¿¡ ´ëÇØ ÇØ´ç µµ¸ÞÀÎÀ» ¿ªÀ¸·Î ãÀ» ¼ö ÀÖµµ·Ï ÇÏ´Â ¼­ºñ½ºÀÌ´Ù. º¸Åë ISP(Internet Service Provider)¿¡¼­ IP¸¦ ÇÒ´ç¹ÞÀ» ¶§ °°ÀÌ ½ÅûÇÑ´Ù. ´ÙÀ½°ú °°ÀÌ Àιö½º µµ¸ÞÀο¡ ´ëÇÑ ³×ÀÓ¼­¹ö°¡ in-addr.arpa ³×ÀÓ½ºÆäÀ̽º¿¡ µî·ÏµÇ¾î ÀÖ´ÂÁö È®ÀÎÇÑ´Ù.

$ nslookup -type=ns 79.105.210.in-addr.arpa (C Class 210.105.79.x¸¦ ÇÒ´ç ¹Þ¾ÒÀ» °æ¿ì)
Server:  ns.nobreak.com
Address:  0.0.0.0

79.105.210.in-addr.arpa nameserver = ns.nobreak.com
79.105.210.in-addr.arpa nameserver = ns2.nobreak.com
ns.nobreak.com  internet address = 210.105.79.2
ns2.nobreak.com internet address = 210.105.79.3

¸¸¾à ´ÙÀ½°ú °°Àº ¸Þ½ÃÁö°¡ ³ª¿Â´Ù¸é, Àιö½º µµ¸ÞÀÎ µî·ÏÀÌ ¾ÈµÇ¾î ÀÖ´Â °ÍÀ̹ǷÎ, ÇØ´ç ISP¿¡ ½ÅûÇÏ¿©¾ß ÇÑ´Ù.

*** ns.nobreak.com can't find 79.105.210.in-addr.arpa.: Non-existent host/domain

2.5 Name Server ¼³Á¤

[±×¸² 3]Àº 'NOBREAK.COM' µµ¸ÞÀο¡ ´ëÇÑ °¡»ó ³×Æ®¿öÅ© ±¸¼ºµµ ÀÌ´Ù.

[Image]
[±×¸² 3] ³×Æ®¿öÅ© ±¸¼ºµµ

³×Æ®¿öÅ©¿£ ¼­¹ö°¡ 3´ë ¿¬°áµÇ¾î ÀÖ´Ù. DNS¸¦ ±¸ÃàÇϱâ Àü¿¡, ±×¸²°ú °°ÀÌ ¹Ì¸® °¢ ¼­¹ö¿¡ È£½ºÆ®¸í°ú IP¸¦ ºÎ¿©ÇÏÀÚ. º¸Åë ³×ÀÓ¼­¹ö´Â ns(primary), ns2(secondary)¸¦ È£½ºÆ®¸íÀ¸·Î »ç¿ëÇÏ°í, IP 1(ÇÒÇÁ·Î ¹Þ¾ÒÀ» °æ¿ì¿£ 129)À» ¶ó¿ìÅÍ È¤Àº ½ºÀ§Ä¡, 2¸¦ NS, 3À» NS2¿¡ ÇÒ´çÇÑ´Ù. µµ¸ÞÀÎ NOBREAK.COMÀº ¾Õ¼­ Internic¿¡ ½ÅûÇÏ¿´À¸´Ï, NS.NOBREAK.COM, NS2.NOBREAK.COM¿¡ ³×ÀÓ¼­¹ö ¼³Á¤À» ÇÏ¸é µÈ´Ù.

BIND-4 ºÎÆ® ÆÄÀÏ named.boot

BIND-4 ºÎÆ® ÆÄÀÏ named.boot´Â BIND ½Ãµ¿½Ã ÂüÁ¶µÇ¸ç, ³×ÀÓ µ¥¸óÀÌ ÇÊ¿ä·Î Çϴ ȯ°æÁ¤º¸¿Í ¿î¿µÇÒ µµ¸ÞÀο¡ ´ëÇÑ Primary/Secondary ¼³Á¤ÀÌ ±â¼úµÈ´Ù. ÀϹÝÀûÀ¸·Î ½Ã½ºÅÛÀÇ /etc/named.boot¿¡ À§Ä¡Çϸç, ´ëºÎºÐÀÇ À¯´Ð½º ½ºÅ¸Æ®¾÷ ½ºÅ©¸³Æ®´Â ºÎÆ® ÆÄÀÏÀÌ Á¸ÀçÇÏ¸é ½Ãµ¿½Ã BIND¸¦ ÀÚµ¿À¸·Î ±¸µ¿ÇÑ´Ù. ºÎÆ® ÆÄÀÏ»óÀÇ ¸ðµç ¿£Æ®¸®´Â ¹Ýµå½Ã 1¿­ ¿¡¼­ ½ÃÀÛÇÏ¿©¾ß Çϸç ';'Àº ÁÖ¼®À» ÀǹÌÇÑ´Ù.

directory  /var/named

'directory' ¿£Æ®¸®´Â °ü·Ã ÆÄÀϵéÀÌ À§Ä¡ÇÑ °æ·Î¸¦ ³ªÅ¸³½´Ù. ÀÌ °æ·Î´Â ºÎÆ® ÆÄÀÏ¿¡ ³ªÅ¸³ª´Â ÆÄÀϵéÀÇ º£À̽º °æ·Î·Î ÀÛ¿ëÇÑ´Ù. µû¶ó¼­ ÆÄÀϵéÀº º» °æ·Î¸¦ ±âÁØÀ¸·Î »ó´ë°æ·Î Ç¥±âÇØ¾ß ÇÏ¸ç ¿©±â¼­´Â /var/named µð·ºÅ丮¸¦ º£À̽º µð·ºÅ丮·Î ÇÑ´Ù. (´ëºÎºÐÀÇ ½Ã½ºÅÛ ±âº» º£À̽º °æ·Î´Â /var/named, /etc/named ȤÀº /etc/namedb ÀÌ´Ù.)

cache  . named.root

cache ·¹ÄÚµå´Â ¸» ±×´ë·ÎÀÇ Ä³½¬°¡ ¾Æ´Ï¶ó ·çÆ® ³×ÀÓ¼­¹ö Á¤º¸°¡ µé¾îÀÖ´Â µ¥ÀÌÅͺ£À̽º ÆÄÀÏÀ» ³ªÅ¸³½´Ù. BIND´Â Ÿ µµ¸ÞÀÎ Á¤º¸¸¦ ·çÆ® ³×ÀÓ¼­¹ö¿¡¼­ºÎÅÍ ÃßÀûÇϴµ¥, ÀÌ ·çÆ® ³×ÀÓ¼­¹ö¿¡ ´ëÇÑ Á¤º¸¸¦ º» ÆÄÀÏ¿¡¼­ ÂüÁ¶ÇÏ°Ô µÈ´Ù. '/var/named/named.root'¿Í °°ÀÌ º£À̽º µð·ºÅ丮¿¡ À§Ä¡½ÃÅ°¸é µÈ´Ù.

ij½¬ ÆÄÀÏÀº Internic¿¡¼­ ¹èÆ÷Çϸç, ftp://ftp.rs.internic.net/domain/named.root¿¡¼­ ±¸ÇÒ ¼ö ÀÖ´Ù. ·çÆ® ³×ÀÓ¼­¹ö ¸ñ·ÏÀÌ ÀÚÁÖ ¼öÁ¤µÇÁø ¾ÊÁö¸¸ Á¶±Ý¾¿ ¹Ù²î±â ¶§¹®¿¡, ¸î ´Þ¿¡ Çѹø¾¿Àº ¾÷µ¥ÀÌÆ® ÇØÁÙ ÇÊ¿ä°¡ ÀÖ´Ù. ½ºÅ©¸³Æ®¸¦ CronÀ¸·Î Á¤±âÀûÀ¸·Î ¼öÇàÇØ Ä³½¬ ÆÄÀÏÀ» ¾÷µ¥ÀÌÆ®ÇÏ´Â °Íµµ ÁÁÀº ¹æ¹ýÀÌ´Ù.

primary  nobreak.com  zone-nobreak.com

ÇØ´ç µµ¸ÞÀο¡ ´ëÇØ Primary ³×ÀÓ¼­¹ö·Î µ¿ÀÛÇÔÀ» ¸»ÇÑ´Ù. ¿¹´Â nobreak.com µµ¸ÞÀο¡ ´ëÇØ º» ¼­¹ö°¡ Primary À̸ç, µ¥ÀÌÅͺ£À̽º ÆÄÀÏÀº /var/named/zone-nobreak.com ÀÓÀ» ³ªÅ¸³½´Ù.

secondary  nobreak.com  210.105.79.2  sec-nobreak.com

µµ¸ÞÀο¡ ´ëÇØ Secondary ³×ÀÓ¼­¹ö·Î µ¿ÀÛÇÑ´Ù. ¼¼ ¹ø° Çʵå´Â Primary ³×ÀÓ¼­¹öÀÇ IP ÁÖ¼ÒÀÌ°í, ³× ¹ø° Çʵå´Â Primary¿¡¼­ Àü¼Û ¹ÞÀº zone ÆÄÀÏÀÌ ÀúÀåµÉ ÆÄÀϸíÀÌ´Ù. 210.105.79.2·ÎºÎÅÍ nobreak.com µµ¸ÞÀÎÀÇ µ¥ÀÌÅͺ£À̽º¸¦ Àü¼Û(Zone Transfer)¹Þ¾Æ /var/named/sec-nobreak.com·Î °ü¸®ÇÔÀ» ¶æÇÑ´Ù.

[±×¸² 3]ÀÇ ³×Æ®¿öÅ©¿¡ ´ëÇÑ ºÎÆ® ÆÄÀÏÀº ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºµÉ ¼ö ÀÖ´Ù.

¡Ø NS.NOBREAK.COM(Primary NS)ÀÇ /etc/named.boot ÆÄÀÏ
directory                           /var/named
cache      .                        named.root
primary    0.0.127.in-addr.arpa     zone-0.0.127.in-addr.arpa    ; loopback
primary    79.105.210.in-addr.arpa  zone-79.105.210.in-addr.arpa ; Reverse ZONE
primary    nobreak.com              zone-nobreak.com             ; Forward ZONE

'0.0.127.in-addr.arpa'´Â loopback ÁÖ¼Ò 127.0.0.1¸¦ À§ÇÑ °ÍÀÌ´Ù. loopback ÁÖ¼Ò°¡ »ç¿ëµÇÁö ¾Ê´Â ½Ã½ºÅÛÀº ¾ø±â ¶§¹®¿¡, 'primary 0.0.127.in-addr.arpa ...'¿Í °°Àº ¶óÀÎÀº ³×ÀÓ¼­¹ö¸¶´Ù °®°í ÀÖ´Ù. ±× ´ÙÀ½ µÎ ¶óÀÎÀÌ ÇÒ´ç¹ÞÀº C Class IP ºí¶ô 210.105.79¿Í µµ¸ÞÀÎ 'nobreak.com'À» À§ÇÑ ¼³Á¤ÀÌ´Ù.

¡Ø NS2.NOBREAK.COM(Secondary NS)ÀÇ /etc/named.boot ÆÄÀÏ
directory                           /var/named
cache      .                        named.root
primary    0.0.127.in-addr.arpa     zone-0.0.127.in-addr.arpa
secondary  79.105.210.in-addr.arpa  210.105.79.2  sec-79.105.210.in-addr.arpa
secondary  nobreak.com              210.105.79.2  sec-nobreak.com

Secondary ³×ÀÓ¼­¹ö ¼³Á¤ÀÌ´Ù. loopbackÀº Primary·Î ³õ¾ÆµÐ´Ù. SecondaryÀÇ ¼³Á¤Àº ÀÌ°ÍÀÌ ÀüºÎÀÌ´Ù. (/var/named/zone-0.0.127.in-addr.arpa´Â ÀÖ¾î¾ß ÇÔ)

Secondary´Â ÇØ´ç µµ¸ÞÀÎÀÇ Primary¿¡ Á¢¼ÓÇÏ¿© µ¥ÀÌÅÍ º£À̽º¸¦ Àü¼Û¹Þ¾Æ, sec-79.105.210.in-addr.arpa, sec-nobreak.comÀ¸·Î ÀúÀå, °ü¸®ÇÑ´Ù.

BIND-8 ºÎÆ® ÆÄÀÏ named.conf

BIND-4¿Í BIND-8ÀÇ °ü·Ã ÆÄÀÏ ÀÛ¼º¹ýÁß À¯ÀÏÇÏ°Ô Â÷ÀÌ°¡ ³ª´Â ºÎºÐÀÌ ¹Ù·Î ÀÌ ºÎÆ® ÆÄÀÏÀÌ´Ù. BIND-8 ºÎÆ® ÆÄÀÏÀÇ ±âº»ÀûÀÎ ±¸¼ºÀº BIND-4¿Í ºñ½ÁÇÏÁö¸¸, ¸¹Àº ºÎºÐ Ãß°¡ È®ÀåµÇ¾ú±â ¶§¹®¿¡, À̸¦ ¼ö¿ëÇÏ°í ¾ÕÀ¸·ÎÀÇ Ãß°¡»çÇ×À» ¼Õ½±°Ô Àû¿ëÇÒ ¼ö ÀÖµµ·Ï ÆÄÀÏ Æ÷¸ËÀÌ º¯°æµÇ¾ú´Ù. ±×¸®°í ±¸¹öÁ¯ ºÎÆ® ÆÄÀÏ°úÀÇ È¥µ¿À» ¸·±âÀ§ÇØ named.conf·Î ¸®³×ÀÓ µÇ¾ú´Ù. ¾î¶»°Ô º¸¸é C ¾ð¾îÀÇ ¹®¹ý°ú ¸Å¿ì Èí»çÇÑ °ÍÀ» ¾Ë ¼ö ÀÖ´Ù. ¼³Á¤À» Á»´õ ¼¼¹ÐÇÏ°Ô ÇÒ ¼ö ÀÖµµ·Ï ÀÛ¼º¹ýÀÌ ¹Ù²î¾úÀ» »Ó, BIND-4ÀÇ ºÎÆ® ÆÄÀÏ°ú Å©°Ô ´Ù¸¦ °ÍÀº ¾ø´Ù. ´ÙÀ½Àº ¾Õ¼­ ÀÛ¼ºÇÑ BIND-4 ±â¹Ý ºÎÆ® ÆÄÀÏÀ» BIND-8¿¡ ¸Â°Ô º¯È¯ÇÑ ¿¹ÀÌ´Ù. ÀϹÝÀûÀ¸·Î BIND-8 ±â¹ÝÀÇ ºÎÆ® ÆÄÀÏÀº ´ÙÀ½¿¡ ³ª¿­µÈ ·¹ÄÚµåÁ¤µµ¸¸ÀÌ È°¿ëµÇÁö¸¸, Àç¹Ì³­ ºÎºÐÀÌ ¸¹À¸¹Ç·Î Á»´õ ±í¼÷È÷ ¾Ë°í ½Í´Ù¸é http://www.isc.org/bind8/config.html¸¦ Âü°íÇϱ⠹ٶõ´Ù.

´ÙÀ½Àº Primary ³×ÀÓ¼­¹ö¸¦ À§ÇÑ ºÎÆ® ÆÄÀÏÀÌ´Ù.

¡Ø NS.NOBREAK.COM(Primary NS)ÀÇ /etc/named.conf ÆÄÀÏ
// ÀÌ°ÍÀº ÁÖ¼®ÀÌ´Ù. BIND-8¿¡¼­ ';'Àº ÁÖ¼®ÀÌ ¾Æ´Ï¶ó, ¶óÀÎÀÇ ³¡À» ÀǹÌÇÑ´Ù.
options {
        directory "/var/named";             // Zone ÆÄÀÏÀÇ º£À̽º µð·ºÅ丮
        dump-file "/var/tmp/named_dump.db"; // Dump ÆÄÀÏÀÌ »ý¼ºµÇ´Â °æ·Î
        statistics-file "/var/tmp/named.stats"; // Åë°è ÆÄÀÏÀÌ »ý¼ºµÇ´Â °æ·Î
        pid-file  "/var/run/named.pid";     // ÇÁ·Î¼¼½º ID°¡ ´ã±ä ÆÄÀÏ »ý¼º °æ·Î
};
logging {   // ºÒÇÊ¿äÇÑ Á¤º¸¸¦ ·Î±×ÆÄÀÏ¿¡ ³²±âÁö ¾Ê´Â´Ù.
        category lame-servers { null; };
        category cname { null; };
        category response-checks { null; };
        category notify { null; };
};

zone "." IN {                       // ij½¬ ÆÄÀÏ
        type hint;
        file "named.root";
};
zone "0.0.127.in-addr.arpa" IN {    // localhost¸¦ À§ÇÑ Primary µµ¸ÞÀÎ ¼³Á¤
        type master;
        file "zone-0.0.127.in-addr.arpa";
};
zone "79.105.210.in-addr.arpa" IN { // ÇÒ´ç IP ºí¶ô¿¡ ´ëÇÑ Reverse Zone
        type master;
        file "zone-79.105.210.in-addr.arpa";
};
zone "nobreak.com" IN {             // µµ¸ÞÀÎ 'NOBREAK.COM'¿¡ ´ëÇÑ Forward Zone
        type master;
        file "zone-nobreak.com";
};

Secondary ³×ÀÓ¼­¹ö¸¦ À§ÇÑ ºÎÆ® ÆÄÀÏÀº ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºµÈ´Ù.

¡Ø NS2.NOBREAK.COM(Secondary NS)ÀÇ /etc/named.conf ÆÄÀÏ
options {
        directory "/var/named";
};
logging {
        category lame-servers { null; };
        category cname { null; };
};

zone "." IN {
        type hint;
        file "named.root";
};
zone "0.0.127.in-addr.arpa" IN {    // localhost¸¦ À§ÇÑ Primary µµ¸ÞÀÎ ¼³Á¤
        type master;
        file "zone-0.0.127.in-addr.arpa";
};
zone "79.105.210.in-addr.arpa" IN { // Reverse Zone¿¡´ëÇÑ Secondary ¼³Á¤
        type slave;
        file "sec-79.105.210.in-addr.arpa";
        masters { 210.105.79.2; };  // Primary NSÀÇ IP ÁÖ¼Ò
};
zone "nobreak.com" IN {             // 'NOBREAK.COM'ÀÇ Secondary ¼³Á¤
        type slave;
        file "sec-nobreak.com";
        masters { 210.105.79.2; };
};

Forward & Reverse Zone µ¥ÀÌÅͺ£À̽º

Zone ÆÄÀÏÀº Forward, Reverse µÎ °¡Áö·Î ±¸ºÐµÈ´Ù. Forward ZoneÀº µµ¸ÞÀο¡ ´ëÇÑ IP Á¤º¸¸¦ °®°í ÀÖ´Â µ¥ÀÌÅͺ£À̽ºÀÌ°í, Reverse ZoneÀº IP¿¡ ´ëÇÑ µµ¸ÞÀÎÁ¤º¸¸¦ °®´Â µ¥ÀÌÅͺ£À̽ºÀÌ´Ù. ¾Õ¼­ named.boot ÆÄÀÏ¿¡ ³×ÀÓ¼­¹ö°¡ loopback, 79.105.210.in-addr.arpa, nobreak.com µµ¸ÞÀο¡ ´ëÇØ Primary·Î µ¿ÀÛÇϵµ·Ï ¼³Á¤ÇÏ¿´´Ù. ÀÌÁß zone-0.0.127.in-addr.arpa¿Í zone-79.105.210.in-addr.arpa°¡ Reverse Zone ÆÄÀÏÀÌ°í, zone-nobreak.comÀÌ Forward Zone ÆÄÀÏÀÌ´Ù. Zone ÆÄÀÏÀº BIND-4¿Í BIND-8¿¡¼­ ÀÛ¼º¹ýÀÌ µ¿ÀÏÇÏ´Ù.

¸ÕÀú [±×¸² 3]ÀÇ ³×Æ®¿öÅ© ±¸¼º¿¡ µû¶ó Forward Zone ÆÄÀÏ zone-nobreak.comÀ» ÀÛ¼ºÇÏ¿© º¸ÀÚ.

SOA ·¹ÄÚµå (Start Of Authority)

Zone ÆÄÀÏÀº Ç×»ó SOA ·¹ÄÚµå·Î ½ÃÀÛÇÑ´Ù. SOA ·¹ÄÚµå´Â ÇØ´ç µµ¸ÞÀÎ, nobreak.com¿¡ ´ëÇØ ³×ÀÓ¼­¹ö°¡ ÀÎÁõ(authoritative)µÈ ÀڷḦ °®°í ÀÖÀ½À» ÀǹÌÇϸç, ÀÚ·á°¡ ÃÖÀûÀÇ »óÅ·ΠÀ¯Áö, °ü¸®µÉ ¼ö ÀÖµµ·Ï ÇÑ´Ù.

nobreak.com. IN  SOA  ns.nobreak.com. hostmaster.nobreak.com. (
                      1998122800  ;Serial
                      21600       ;Refresh ( 6 hours)
                      1800        ;Retry   (30 minutes)
                      1209600     ;Expire  (14 days)
                      86400)      ;Minimum ( 1 day)

1¿­¿¡´Â ÇØ´ç Zone ÆÄÀÏ¿¡ ´ëÇÑ µµ¸ÞÀθíÀÌ µé¾î°£´Ù. µµ¸ÞÀÎ¸í ³¡ÀÇ µµÆ®¸¦ ÀØÁö ¸»ÀÚ. ´ÙÀ½°ú °°ÀÌ µµ¸ÞÀÎ¸í ´ë½Å '@' Ç¥½Ã¸¦ »ç¿ëÇÏ¿©µµ µÈ´Ù.

@            IN  SOA  ns.nobreak.com. hostmaster.nobreak.com. (

IN(Internet)Àº Ŭ·¡½º¸íÀÌ´Ù. HS, HESIOD, CHAOS¿Í °°Àº Ŭ·¡½ºµµ Á¸ÀçÇÏÁö¸¸, ÀϹÝÀûÀ¸·Î »ç¿ëµÇÁö ¾ÊÀ¸¹Ç·Î Ç×»ó INÀÌ »ç¿ëµÈ´Ù°í »ý°¢ÇÏÀÚ.

SOA ´ÙÀ½¿£ Primary ³×ÀÓ¼­¹ö¿Í °ü¸®ÀÚ Email ÁÖ¼Ò°¡ µé¾î°£´Ù. 'hostmaster.nobreak.com.'ÀÌ Email ÁÖ¼ÒÀε¥, ÀϹÝÀû Email Ç¥±â¹ý¿¡¼­ '@'¸¦ µµÆ®·Î ¹Ù²Ù¾î ¾²¸é µÈ´Ù. º» EmailÀº ÇØ´ç µµ¸ÞÀÎÀÇ ÄÜÅà Æ÷ÀÎÆ®(Responsible Person)·Î¼­ µµ¸ÞÀο¡ ¹®Á¦°¡ ¹ß»ýÇÒ °æ¿ì À̸¦ ¸®Æ÷ÆÃÇÏ´Â ¿ëµµ·Î »ç¿ëµÈ´Ù. Namespace¸¦ ÂÑÀ¸¸ç µµ¸ÞÀÎ ¿À·ù¸¦ Á¡°ËÇÏ´Â 'lamers'¿Í °°Àº µµ±¸µéÀº ¹®Á¦°¡ °ËÃâµÇ¾úÀ» ¶§ º» Email·Î ÅëÁöÇÏ¿© ÁØ´Ù.

´ÙÀ½ °ýÈ£·Î µÑ·¯½ÎÀÎ ºÎºÐ¿£ Serial, Refresh, Retry, Expire, Minimum 5°³ÀÇ ½Ã°£(ÃÊ) Çʵ尡 ³õÀδÙ. MinimumÀ» Á¦¿ÜÇÑ 4°³ Çʵå´Â Secondary ³×ÀÓ¼­¹ö¸¦ Á¦¾îÇϱâ À§ÇÑ °ªÀÌ´Ù. ±âº» ´ÜÀ§´Â 'ÃÊ'ÀÌ°í, ´ÜÀ§±âÈ£ M(Minute), H(Hour), D(Day), W(Week)¸¦ ºÙ¿© 30M, 8H, 2D, 1W¿Í °°ÀÌ »ç¿ëÇÒ ¼öµµ ÀÖ´Ù.

NS(Name Server) ·¹ÄÚµå

NS ·¹ÄÚµå·Î ÇØ´ç µµ¸ÞÀο¡ ´ëÇÑ ³×ÀÓ¼­¹ö¸¦ ´ÙÀ½°ú °°ÀÌ ³ªÅ¸³½´Ù.

nobreak.com.   IN  NS      ns.nobreak.com.
               IN  NS      ns2.nobreak.com.

¶Ç ´Ù¸¥ NSÀÇ È°¿ëÀ¸·Î´Â, °Å´ë µµ¸ÞÀο¡¼­ ¼­ºê µµ¸ÞÀÎÀ» ´Ù¸¥ ³×ÀÓ¼­¹ö·Î À§ÀÓÇÒ¶§ ÀÌ´Ù. Namespace»óÀÇ °¡Áö¿¬°áÀº ÀÌ NS ·¹ÄÚµå·Î ÀÌ·ç¾î Áö´Âµ¥, °Å´ë µµ¸ÞÀÎÀÏ °æ¿ì ÇØ´çÇÏ´Â ºÎºÐÀ̹ǷÎ, ¿©±â¼­´Â ÇØ´ç µµ¸ÞÀο¡ ´ëÇÑ À§ÀÓ Á¤º¸¸¸À» ³ªÅ¸³½´Ù°í ¾Ë¾ÆµÎÀÚ. "µµ¸ÞÀÎ À§ÀÓ"¿¡¼­ ÀÚ¼¼È÷ ´Ù·é´Ù.

A(Address) & CNAME(Canonical Name) ·¹ÄÚµå

A ·¹ÄÚµå´Â µµ¸ÞÀο¡ IP¸¦ ºÎ¿©ÇÑ´Ù. ´ÙÀ½ ¼³Á¤À» º¸ÀÚ. mail°ú power¿¡ A ·¹ÄÚµå·Î IP¸¦ ¸ÅÇÎ ÇÏ¿´´Ù. (mail°ú 'mail.nobreak.com.'Àº µ¿ÀÏÇÏ°Ô Çؼ®µÈ´Ù.)

; Host addresses
mail.nobreak.com.   IN  A      210.105.79.2
power               IN  A      210.105.79.103
; Aliases
www                 IN  CNAME  power.nobreak.com.
ftp                 IN  CNAME  www

CNAME ·¹ÄÚµå´Â µµ¸ÞÀο¡ ´ëÇÑ ¶Ç ´Ù¸¥ À̸§ÀÌ °¡´ÉÇϵµ·Ï ÇÑ´Ù. ¿¹¿¡¼­´Â power.nobreak.com, www.nobreak.com, ftp.nobreak.comÀº ¸ðµÎ °°Àº IP 210.105.79.103À» °®°Ô µÈ´Ù. ftp¿Í °°ÀÌ CNAMEÀÌ CNAMEÀ» Æ÷ÀÎÆà ÇÏ´Â °æ¿ì´Â, ¿©·¯ DNS °ü·Ã ÀÚ·á¿¡¼­ ´Ù¸£°Ô ¾ê±âµÇ°í ÀÖÁö¸¸, ÀÌ°ÍÀº °¡´ÉÇÏ´Ù. CNAMEÀº Æ÷ÀÎÆÃÇÏ´Â ¿À¸®Áö³Î µµ¸ÞÀÎÀÇ ·¹Äڵ带 ¸ðµÎ »ó¼Ó¹Þ±â ¶§¹®¿¡, CNAMEÀ¸·Î ¼³Á¤µÈ µµ¸ÞÀÎÀº Ãß°¡ ·¹Äڵ带 °®À» ¼ö ¾øÀ½À» À¯ÀÇÇÑ´Ù. ¶ÇÇÑ, MX, NS µîÀÇ ·¹Äڵ忡µµ CNAMEÀ¸·Î ¼³Á¤µÈ µµ¸ÞÀÎÀ» ³Ö¾î¼­´Â ¾ÈµÈ´Ù. ¹Ýµå½Ã ÁÖÀÇÇÏ¿©¾ß ÇÑ´Ù. CNAMEÀÇ À߸øµÈ »ç¿ëÀº BIND ·Î±×¸¦ À¯½ÉÈ÷ °üÂûÇÏÁö ¾ÊÀ¸¸é ã±â ¾î·Á¿ì¹Ç·Î, È®½ÇÈ÷ ÇÒ ¼ö ¾ø´Ù¸é CNAMEÀ¸·Î ¼³Á¤µÈ ·¹Äڵ带 ¾Æ¿¹ ´Ù¸¥ ·¹ÄÚµåÀÇ ÀÎÀÚ·Î ³õÁö ¾Ê´Â °ÍÀÌ ÁÁ´Ù. ¼÷·ÃµÈ µµ¸ÞÀÎ ¸Þ´ÏÀú Áß¿¡¼­µµ Æ®·¡ÇÈ°ú, ÆÛÆ÷¸Õ½º¶ó´Â Ãø¸é¿¡¼­ CNAMEÀ» ÀüÇô »ç¿ëÇÏÁö ¾Ê´Â °æ¿ìµµ ÀÖ´Ù. (Âü°í: ``CNAMEÀÇ »ç¿ë¿¡ °üÇØ'')

ftp                 IN  CNAME  www  ; (X) CNAME¿£ Ãß°¡·¹Äڵ带 °®À» ¼ö
                    IN  MX     mail ;     ¾ø´Ù.

power               IN  MX 10  mail ; (X) MX¿¡ CNAMEÀ¸·Î ¼³Á¤µÈ
mail                IN  CNAME  ns   ;     ·¹Äڵ尡 ¿Ã ¼ö ¾ø´Ù.

MX(Mail eXchanger) ·¹ÄÚµå

MX ·¹ÄÚµå´Â ÇØ´ç È£½ºÆ®ÀÇ ¸ÞÀÏ ¶ó¿ìÆà °æ·Î¸¦ Á¶Á¤ÇÑ´Ù. ´ÙÀ½°ú °°ÀÌ ¼³Á¤µÇ¾î ÀÖÀ» °æ¿ì, account@nobreak.com À¸·Î º¸³»¾î Áö´Â ÆíÁö´Â ½ÇÁ¦ 'mail.nobreak.com.' À¸·Î Àü¼ÛµÈ´Ù. ¸¸¾à 'mail.nobreak.com.'¿¡ ¿¬°áÇÒ ¼ö ¾ø´Ù¸é, ´ÙÀ½ ¿ì¼±¼øÀ§ÀÎ 'power.nobreak.com'À¸·Î ÆíÁö¸¦ ¹è¼ÛÇÏ°Ô µÈ´Ù. MX Priority_Number ¿Í °°ÀÌ »ç¿ëÇϸç, Priority_NumberÀÇ ¼ýÀÚ´Â ÀûÀ»¼ö·Ï ¿ì¼±¼øÀ§°¡ ³ô´Ù. "MX(Mail eXchange) ¾Ë°í¸®Áò"¿¡¼­ ÀÚ¼¼È÷ ´Ù·é´Ù.

nobreak.com.        IN  MX  10  mail.nobreak.com.
                    IN  MX  20  power.nobreak.com.
mail.nobreak.com.   IN  A       210.105.79.2
power.nobreak.com.  IN  A       210.105.79.103

´ÙÀ½°ú °°ÀÌ MX ·¹Äڵ忡 CNAMEÀ¸·Î ¼³Á¤µÈ µµ¸ÞÀÎÀ» ³ÖÀ¸¸é ¾ÈµÈ´Ù. ÀÌ·² °æ¿ì ¸î¸î MTA(Mail Transfer Agent: sendmail)´Â ¸ÞÀÏ ¶ó¿ìÆà °æ·Î¸¦ ãÁö ¸øÇÏ¿©, ¸ÞÀÏÀ» ÁÖ°í¹ÞÀ» ¼ö ¾ø´Ù. ÀÌ´Â ¼Û½ÅÀÎÀÌ »ç¿ëÇÏ´Â MTAÀÇ Á¾·ù¿Í ¹öÀü¿¡ ÀÇÁ¸ÀûÀ̹ǷÎ, °æÇè ¸¹Àº µµ¸ÞÀÎ ¸Þ´ÏÀú°¡ ¾Æ´Ï¸é ¹®Á¦ÀÇ ¿øÀÎÀ» Áø´ÜÇϱ⵵ ¾î·Æ´Ù. ¹Ýµå½Ã ÁÖÀÇÇÏÀÚ.

nobreak.com.        IN  MX  10  mail.nobreak.com.  ; (X) À߸øµÈ »ç¿ë
mail.nobreak.com.   IN  CNAME   power.nobreak.com.
power.nobreak.com.  IN  A       210.105.79.103

PTR(Pointer) ·¹ÄÚµå

PTR ·¹ÄÚµå´Â IP ÁÖ¼Ò¿¡ ´ëÇØ µµ¸ÞÀθíÀ» ¸ÅÇÎÇÏ¿© ÁÖ¸ç, Reverse Zone ÆÄÀÏ¿¡¼­ »ç¿ëµÈ´Ù. ´ÙÀ½Àº IP 210.105.79.2¿¡ ´ëÇÑ ¼³Á¤ ¿¹ÀÌ´Ù.

2.79.105.210.in-addr.arpa.  IN  PTR  ns.nobreak.com.

Forward Zone¿¡¼­´Â ´Ù¼öÀÇ µµ¸ÞÀÎÀÌ A(ȤÀº CNAME) ·¹Äڵ带 ÅëÇØ °°Àº IP¸¦ °®À» ¼ö ÀÖÁö¸¸, PTR ·¹ÄÚµå´Â Áߺ¹ÀÌ Çã¿ëµÇÁö ¾Ê±â ¶§¹®¿¡, ÇØ´ç IP¿¡ ´ëÇÑ ´ëÇ¥ µµ¸ÞÀθí Çϳª¸¸À» ¼³Á¤ÇÏ¿©¾ß ÇÑ´Ù.

±âŸ ·¹ÄÚµåµé

Zone µ¥ÀÌÅͺ£À̽º¿¡ ÇÊ¿äÇÑ ·¹ÄÚµåµéÀº À§¿¡ ³ª¿­ÇÑ °Í¸¸À¸·Îµµ ÃæºÐÇÏÁö¸¸, ´õ ¸¹Àº ·¹ÄÚµåµéÀÌ Á¸ÀçÇÑ´Ù. ´ÙÀ½¿¡ ¹Ýµå½Ã ÇÊ¿äÇÏÁö´Â ¾ÊÀ¸³ª, Á¾Á¾ »ç¿ëµÇ´Â ·¹Äڵ带 ¼Ò°³ÇÑ´Ù. ´õ ÀÚ¼¼ÇÑ Á¤º¸°¡ ÇÊ¿äÇÏ´Ù¸é RFC1035, RFC1183, RFC2163À» Âü°íÇÏÀÚ.

power           IN  A      210.105.79.103
                IN  HINFO  "Sun Sparc Ultra 5"  "Solaris 2.6"
                IN  TXT    "Nobreak's Primary Server"
                IN  TXT    "WWW, FTP is now available"
                IN  RP     hostmaster.nobreak.com.  hostinfo.nobreak.com.
hostinfo        IN  TXT    "Seung-young Kim, +82-42-864-4440/1"

HINFO(Host INFOrmation) ·¹ÄÚµå´Â µÎ °³ÀÇ ¹®ÀÚ¿­(CPU Á¤º¸, OS Á¤º¸)À» °®À¸¸ç ½Ã½ºÅÛ Á¤º¸¸¦ ³ªÅ¸³½´Ù. ¹®ÀÚ¿­¿¡ °ø¹éÀÌ Æ÷ÇԵǾî ÀÖÀ» °æ¿ì¿¡´Â ¹Ýµå½Ã Å«µû¿ÈÇ¥¸¦ »ç¿ëÇÏ¿©¾ß ÇÑ´Ù.

TXT(TeXT) ·¹ÄÚµå´Â ÅؽºÆ® Á¤º¸¸¦ °®À¸¸ç ÁßøµÇ¾î »ç¿ëµÉ ¼ö ÀÖ´Ù. RP(Responsible Person)´Â ´ã´çÀÚÀÇ Á¤º¸¸¦ Ç¥½ÃÇϴµ¥, Email ÁÖ¼Ò(@¸¦ µµÆ®·Î ġȯÇÑ)¿Í, ´ã´çÀÚ Á¤º¸(TXT ·¹Äڵ带 °®´Â µµ¸ÞÀÎÀ» Æ÷ÀÎÆÃÇÔ)¸¦ °®´Â´Ù. HINFO¸¦ Æ÷ÇÔÇÑ ¸î¸î ·¹ÄÚµå´Â º¸¾ÈÀ» ÀÌÀ¯·Î »ç¿ëÄ¡ ¸»¾Æ¾ß ÇÑ´Ù´Â ÀÇ°ßµµ ÀÖ´Ù.

Zone µ¥ÀÌÅͺ£À̽º Sample

[±×¸² 3]ÀÇ ³×Æ®¿öÅ© ±¸¼º¿¡ ´ëÇÑ Forward Zone ÆÄÀÏ zone-nobreak.comÀº ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºµÉ ¼ö ÀÖ´Ù.

¡Ø 'NOBREAK.COM' µµ¸ÞÀο¡ ´ëÇÑ Forward Zone ÆÄÀÏ /var/named/zone-nobreak.com

@               IN      SOA     ns.nobreak.com. hostmaster.nobreak.com. (
                                1998122801  ;Serial
                                21600       ;Refresh ( 6 hours)
                                1800        ;Retry   (30 minutes)
                                1209600     ;Expire  (14 days)
                                86400)      ;Minimum ( 1 day)
                IN      NS      ns.nobreak.com.
                IN      NS      ns2.nobreak.com.
                IN      MX 10   mail           ; ¸ÞÀÏ ¶ó¿ìÆà ȣ½ºÆ®

mail            IN      A       210.105.79.2

; Hosts Here - This is comments
router          IN      A       210.105.79.1
ns              IN      A       210.105.79.2
ns2             IN      A       210.105.79.3
power           IN      A       210.105.79.103
                IN      HINFO   "Sun Sparc Ultra 5"         "Solaris 2.6"
                IN      TXT     "Nobreak Technologies, Inc."
www             IN      CNAME   power

Àιö½º µµ¸ÞÀÎÀ» À§ÇÑ Reverse Zone ÆÄÀÏ zone-79.105.210.in-addr.arpaÀº ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºµÈ´Ù.

¡Ø Reverse Zone ÆÄÀÏ /var/named/zone-79.105.210.in-addr.arpa

@               IN      SOA     ns.nobreak.com. hostmaster.nobreak.com. (
                                1998122801  ;Serial
                                21600       ;Refresh ( 6 hours)
                                1800        ;Retry   (30 minutes)
                                1209600     ;Expire  (14 days)
                                86400)      ;Minimum ( 1 day)
                IN      NS      ns.nobreak.com.
                IN      NS      ns2.nobreak.com.
; IP-Domain mapping here
1               IN      PTR     router.nobreak.com.
2               IN      PTR     ns.nobreak.com.
3               IN      PTR     ns2.nobreak.com.
103             IN      PTR     power.nobreak.com.

loopback ÁÖ¼Ò¸¦ À§ÇÑ Reverse Zone ÆÄÀÏ ¶ÇÇÑ ´ÙÀ½°ú °°ÀÌ ÀÛ¼ºµÈ´Ù. IP 127.0.0.1À» 'localhost.'·Î ¸ÅÇÎÇÏ´Â °ÍÀÌ ÀüºÎÀ̹ǷÎ, º» ÆÄÀÏÀº ¾î´À ³×Æ®¿öÅ©¿¡¼­³ª ºñ½ÁÇÏ°Ô ÀÛ¼ºµÉ °ÍÀÌ´Ù.

¡Ø loopbackÀ» À§ÇÑ Reverse Zone ÆÄÀÏ /var/named/zone-0.0.127.in-addr.arpa

@               IN      SOA     ns.nobreak.com. hostmaster.nobreak.com. (
                                1998122801  ;Serial
                                21600       ;Refresh ( 6 hours)
                                1800        ;Retry   (30 minutes)
                                1209600     ;Expire  (14 days)
                                86400)      ;Minimum ( 1 day)
                IN      NS      ns.nobreak.com.
                IN      NS      ns2.nobreak.com.
; IP-Domain mapping here
1               IN      PTR     localhost.

Zone ÆÄÀÏ¿¡¼­ÀÇ µµ¸ÞÀΠǥ±â´Â ¹Ýµå½Ã FQDN Ç¥±â¹ýÀ» µû¶ó¾ß ÇÑ´Ù. BIND´Â µµÆ®·Î ³¡³ªÁö ¾Ê´Â ¹®ÀÚ¿­Àº È£½ºÆ®¸íÀ¸·Î ó¸®ÇϹǷÎ, 'ns.nobreak.com'À» 'ns.nobreak.com.nobreak.com.'À¸·Î Çؼ®ÇÑ´Ù. µû¶ó¼­ 'ns.nobreak.com.'°ú °°ÀÌ µµÆ®¸¦ ºÙÀÎ FQDNÀ¸·Î Ç¥±âÇϰųª, 'ns'¿Í °°ÀÌ È£½ºÆ®¸í¸¸ »ç¿ëÇÏ¿©¾ß ÇÑ´Ù. µµÆ®¸¦ »©¸Ô´Â ½Ç¼ö´Â ¸Å¿ì ºó¹øÈ÷ ¹ß»ýÇϹǷÎ, ÁÖÀÇÇÏÀÚ.

È£½ºÆà ¾÷ü¸¦ À§ÇÑ Zone µ¥ÀÌÅͺ£À̽º Sample

È£½ºÆþ÷üÀÇ °æ¿ì ´ÙÀ½°ú °°ÀÌ ´Ù¼öÀÇ µµ¸ÞÀÎÀ» ÇϳªÀÇ Zone µ¥ÀÌÅͺ£À̽º·Î °ü¸®ÇÒ ¼ö°¡ ÀÖ´Ù. ¸¸¾à, È£½ºÆà µµ¸ÞÀκ°·Î º°µµÀÇ ZoneÀ» À¯ÁöÇÑ´Ù¸é, È£½ºÆà ¼­¹öÀÇ IP º¯È­¿Í °°ÀÌ °ü·ÃµÈ ¸ðµç ZoneÀÌ ¼öÁ¤µÇ¾î¾ß ÇÏ´Â »óȲÀÌ ¿ÀÁö ¾Ê±â¸¦ ±âµµÇϰųª, ¹Ý³ªÀýÀ» ÆíÁý±â¿Í ¾¾¸§ÇÒ¼ö ÀÖ´Â ²ö±â¸¦ ¹è¿ö¾ßÇÒ °ÍÀÌ´Ù. ¿©±â¼­ ¼Ò°³ÇÏ´Â ÆÁÀº »ç¿ëÀÚ°¡ ¸¹Àº È£½ºÆà ¾÷üÀϼö·Ï À¯¿ëÇÏ°Ô È°¿ëµÉ ¼ö ÀÖÀ¸¸ç, µµ¸ÞÀÎ Ãß°¡/¼öÁ¤/»èÁ¦¿¡ µå´Â ½Ã°£°ú ³ë·ÂÀ» Àý¾àÇÒ ¼ö ÀÖÀ» °ÍÀÌ´Ù.

* named.boot (BIND-4)
primary         netbsd.org                      zone-default
primary         openbsd.org                     zone-default
...
primary         freebsd.org                     zone-freebsd.org     ; º°µµÀÇ Ãß°¡ µµ¸ÞÀÎÀÌ ÇÊ¿äÇÑ °æ¿ì
...

* named.conf (BIND-8)
zone "netbsd.org"       IN { type master; file "zone-default"; };
zone "openbsd.org"      IN { type master; file "zone-default"; };
...
zone "freebsd.org"      IN { type master; file "zone-freebsd.org"; };
...

* zone-default
@               IN      SOA     ns.nobreak.com. hostmaster.nobreak.com. (
                                1999030601  ;serial
                                21600       ;Refresh ( 6 hours)
                                1800        ;Retry   (30 minutes)
                                1209600     ;Expire  (14 days)
                                86400)      ;Minimum ( 1 day)
                IN      NS      ns.nobreak.com.
                IN      NS      ns2.nobreak.com.
                IN      A       210.105.79.39
                IN      MX 10   @
                IN      MX 20   mqueue.nobreak.com.

www             IN      CNAME   @
telnet          IN      CNAME   @
ftp             IN      CNAME   @
mail            IN      CNAME   @
pop             IN      CNAME   @
news            IN      CNAME   news.nobreak.com.

* zone-freebsd.org
$INCLUDE zone-default

ftp.kr          IN      A       147.46.102.39
www.kr          IN      CNAME   @

2.6 Name Server ±¸µ¿

³×ÀÓ¼­¹ö¸¦ ±¸µ¿Çϱâ À§ÇÑ ¼³Á¤ÀÌ ¸¶¹«¸®µÇ¾ú´Ù. °ü·Ã ÆÄÀϵéÀÌ ÁغñµÇ¾úÀ½À» È®ÀÎÇÑ ÈÄ, ³×ÀÓ¼­¹ö¸¦ ±¸µ¿ÇÏÀÚ. ÀÏ·ÃÀÇ °úÁ¤Àº ´ÙÀ½°ú °°´Ù.

¡Ø NS.NOBREAK.COM (BIND-8)
# ls /etc/named.conf     # BIND-8 ºÎÆ® ÆÄÀÏ
/etc/named.conf
# ls /var/named/         # Zone µ¥ÀÌÅͺ£À̽º ÆÄÀÏ È®ÀÎ
named.root
zone-0.0.127.in-addr.arpa
zone-79.105.210.in-addr.arpa
zone-nobreak.com
# /usr/sbin/named        # ³×ÀÓ µ¥¸ó ±¸µ¿ (Solaris: /usr/sbin/in.named)
# ps ax | grep named     # ÇÁ·Î¼¼½º µ¿ÀÛ È®ÀÎ (Solaris: ps -e | grep in.named)
  254  ?  S    0:00 named

¡Ø NS2.NOBREAK.COM (BIND-4)
# ls /etc/named.boot      # BIND-4 ºÎÆ® ÆÄÀÏ
/etc/named.boot
# ls /var/named/          # Zone µ¥ÀÌÅͺ£À̽º ÆÄÀÏ È®ÀÎ
named.root
zone-0.0.127.in-addr.arpa
# ndc start               # ndc(Name Daemon Control)°¡ ¼³Ä¡µÇ¾î ÀÖÀ» °æ¿ì
Name Server Started
# ndc status
  254  ?  S    0:00 named
# ls /var/named/          # PrimaryÀÇ Zone Àü¼Û¿©ºÎ È®ÀÎ
named.root
sec-79.105.210.in-addr.arpa
sec-nobreak.com
zone-0.0.127.in-addr.arpa

2.7 µ¿ÀÛ È®ÀÎ

¿©±â¿¡¼± [±×¸² 3]ÀÇ °¡»ó ³×Æ®¿öÅ© ±¸¼ºµµ¿¡ µû¸¥ ¼³Á¤À» ´Ù·ç¾úÁö¸¸, ±âº»ÀûÀ¸·Î ÇÊ¿äÇÑ ºÎºÐÀº ¸ðµÎ Àû¿ëµÇ¾î ÀÖÀ¸¹Ç·Î ½ÇÁ¦ ³×Æ®¿öÅ©¿¡ Àû¿ëÇÒ ¶§¿¡µµ °°Àº ´À³¦À¸·Î ¼³Á¤ÇÏ¸é µÈ´Ù. ´ÙÀ½°ú °°ÀÌ Å¸ ³×ÀÓ¼­¹ö¸¦ ÅëÇØ ÁúÀǸ¦ ´øÁ®º½À¸·Î½á, Namespace °¡Áö»ó¿¡ Àß ¿¬°áµÇ¾î ÀÖÀ½À» È®ÀÎÇÏÀÚ.

$ nslookup power.nobreak.com ns.nobreak.com   # Primary µ¿ÀÛ È®ÀÎ
Server:  ns.nobreak.com
Address:  0.0.0.0

Name:    power.nobreak.com
Address:  210.105.79.103

$ nslookup power.nobreak.com ns2.nobreak.com  # Secondary µ¿ÀÛ È®ÀÎ
Server:  ns2.nobreak.com
Address:  210.105.79.3

Name:    power.nobreak.com
Address:  210.105.79.103

$ nslookup power.nobreak.com ns.kornet.ne.kr  # Namespace ¸µÅ© È®ÀÎ
Server:  ns.kornet.nm.kr
Address:  168.126.63.1

Name:    power.nobreak.com
Address:  210.105.79.103

À§ÀÇ 3°¡Áö ÁúÀÇ°¡ ¼º°øÀûÀ¸·Î ¼öÇàµÇ¾ú´Ù¸é, ÀÏ´Ü ³×ÀÓ¼­¹ö°¡ Á¤»óÀûÀ¸·Î ¿î¿ëµÈ´Ù°í »ý°¢Çصµ ÁÁ´Ù. È®½ÇÈ÷ Çϱâ À§Çؼ±, ·Î±×ÆÄÀÏ ºÐ¼®À» ÅëÇØ Zone µ¥ÀÌÅͺ£À̽º ±¸¼º»óÀÇ ¿À·ù¿Í BINDÀÇ µ¿ÀÛ »óŸ¦ »ìÆ캸¾Æ¾ß ÇÑ´Ù.


´ÙÀ½ ÀÌÀü Â÷·Ê