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

5. µµ¸ÞÀÎ ¼³Á¤ÀÇ ½ÇÁ¦ ¿¹

¿©±â¿¡¼­ ½ÇÁ¦ Á¸ ÆÄÀÏ ¸î °³¸¦ ´Ù·ê °ÍÀÌ´Ù.

»ç¿ëÀÚµéÀÌ ±³À°ÀûÀÎ ¿¹¿Í ÇÔ²² ½ÇÁ¦·Î »ç¿ëµÇ°í ÀÖ´Â µµ¸ÞÀÎÀÇ ¿¹¸¦ Æ÷ÇÔÇØ ÁÙ °ÍÀ» Á¦¾ÈÇß´Ù.

LAND-5ÀÇ David Bullock ¾¾ÀÇ Çã¶ôÇÏ¿¡ ¾Æ·¡ ¿¹µéÀ» »ç¿ëÇÑ´Ù. ÀÌ ÆÄÀϵéÀº 1996³â 9¿ù 24ÀÏ¿¡ ¸¸µé¾îÁ³´Ù. bind-8 Á¶°Ç¿¡ ¸Â°Ô ¼öÁ¤ÇÏ¿´°í ÀúÀÚ°¡ Á» ´õ È®ÀåÇÏ¿© »ç¿ëÇÏ¿´´Ù. ±×·¯¹Ç·Î ÇöÀçÀÇ LAND-5 ³×ÀÓ ¼­¹ö¿¡ Äõ¸®¸¦ ÇÑ´Ù¸é ¿©±â¼­¿Í´Â Á¶±ÝÀº ´Ù¸¥ °á°ú¸¦ ¾ò°Ô µÉ °ÍÀÌ´Ù.

5.1 /etc/named.conf (¶Ç´Â /var/named/named.conf)

¿©±â¼­ 127.0.0 °ú LAND-5ÀÇ 206.6.177 ¼­ºê³Ý¿¡ ÇÊ¿äÇÑ ¿ªº¯È¯ Á¸¿¡ ´ëÇÑ ¸¶½ºÅÍ Á¸ ¼½¼ÇÀ» »ìÆ캸ÀÚ. ±×¸®°í lang-5.com Á¸À» »ìÆì º¸ÀÚ. ÀÌ ÇÏ¿ìÅõ¿¡¼­ ÀúÀÚ´Â pz ¶ó´Â µð·ºÅ丮¿¡ ÆÄÀϵéÀ» µÎ¾úÁö¸¸ ±×´Â zonezone À̶ó´Â µð·ºÅ丮¿¡ µÎ°í ÀÖÀ½¿¡ ÁÖÀÇÇÏÀÚ.


// Boot file for LAND-5 name server

options {
        directory "/var/named";
};

zone "." {
        type hint;
        file "root.hints";
};

zone "0.0.127.in-addr.arpa" {
        type master;
        file "zone/127.0.0";
};

zone "land-5.com" {
        type master;
        file "zone/land-5.com";
};

zone "177.6.206.in-addr.arpa" {
        type master;
        file "zone/206.6.177";
};

À§ÀÇ ³»¿ëÀ» ½ÇÁ¦·Î named.conf¿¡ ³Ö¾î¼­ Å×½ºÆ®ÇÒ °æ¿ì¿¡´Â, »ç°í°¡ ÀϾÁö ¾Êµµ·Ï lang-5 Á¸°ú ¿ªº¯È¯ Á¸ µÎ °÷¿¡ notify no; ¶óÀÎÀ» ¹Ýµå½Ã ³Ö¾î¶ó.

5.2 /var/named/root.hints

ÀÌ ÆÄÀÏÀº À¯µ¿ÀûÀÓÀ» ¸í½ÉÇ϶ó. ±×·¯¹Ç·Î ¿©±â ³ª¿­µÈ Á¤º¸´Â ¿¹Àü °ÍÀÌ´Ù. ÀÌÀü¿¡ ¼³¸íµÇ¾ú´ø dig·Î »êÃâµÈ ÇöÀçÀÇ °ÍÀ» »ç¿ëÇÏ´Â °ÍÀÌ ÈξÀ ³ªÀ» °ÍÀÌ´Ù.


; <<>> DiG 8.1 <<>> @A.ROOT-SERVERS.NET. 
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10
;; flags: qr aa rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
;; QUERY SECTION:
;;      ., type = NS, class = IN

;; ANSWER SECTION:
.                       6D IN NS        G.ROOT-SERVERS.NET.
.                       6D IN NS        J.ROOT-SERVERS.NET.
.                       6D IN NS        K.ROOT-SERVERS.NET.
.                       6D IN NS        L.ROOT-SERVERS.NET.
.                       6D IN NS        M.ROOT-SERVERS.NET.
.                       6D IN NS        A.ROOT-SERVERS.NET.
.                       6D IN NS        H.ROOT-SERVERS.NET.
.                       6D IN NS        B.ROOT-SERVERS.NET.
.                       6D IN NS        C.ROOT-SERVERS.NET.
.                       6D IN NS        D.ROOT-SERVERS.NET.
.                       6D IN NS        E.ROOT-SERVERS.NET.
.                       6D IN NS        I.ROOT-SERVERS.NET.
.                       6D IN NS        F.ROOT-SERVERS.NET.

;; ADDITIONAL SECTION:
G.ROOT-SERVERS.NET.     5w6d16h IN A    192.112.36.4
J.ROOT-SERVERS.NET.     5w6d16h IN A    198.41.0.10
K.ROOT-SERVERS.NET.     5w6d16h IN A    193.0.14.129
L.ROOT-SERVERS.NET.     5w6d16h IN A    198.32.64.12
M.ROOT-SERVERS.NET.     5w6d16h IN A    202.12.27.33
A.ROOT-SERVERS.NET.     5w6d16h IN A    198.41.0.4
H.ROOT-SERVERS.NET.     5w6d16h IN A    128.63.2.53
B.ROOT-SERVERS.NET.     5w6d16h IN A    128.9.0.107
C.ROOT-SERVERS.NET.     5w6d16h IN A    192.33.4.12
D.ROOT-SERVERS.NET.     5w6d16h IN A    128.8.10.90
E.ROOT-SERVERS.NET.     5w6d16h IN A    192.203.230.10
I.ROOT-SERVERS.NET.     5w6d16h IN A    192.36.148.17
F.ROOT-SERVERS.NET.     5w6d16h IN A    192.5.5.241

;; Total query time: 215 msec
;; FROM: roke.uio.no to SERVER: A.ROOT-SERVERS.NET.  198.41.0.4
;; WHEN: Sun Feb 15 01:22:51 1998
;; MSG SIZE  sent: 17  rcvd: 436

5.3 /var/named/zone/127.0.0

±âº»ÀûÀ¸·Î Çʼö ·¹ÄÚµåÀÎ SOA ·¹Äڵ尡 ÇÊ¿äÇϸç, 127.0.0.1À» localhost·Î ¸ÅÇÎÇØ ÁÖ´Â ·¹Äڵ尡 ÇÊ¿äÇÏ´Ù. ±× ¿ÜÀÇ °ÍµéÀÌ ÀÌ ÆÄÀÏ¿¡ À־´Â ¾ÈµÈ´Ù. ³×ÀÓ¼­¹ö°¡ ¹Ù²î°Å³ª hostmaster ¸ÞÀÏ ÁÖ¼Ò°¡ ¹Ù²îÁö ¾Ê´Â ÇÑ ÀÌ ÆÄÀÏÀº °»½ÅÇÒ ÇÊ¿ä°¡ ¾ø´Ù.


@               IN      SOA     land-5.com. root.land-5.com. (
                                199609203       ; Serial
                                28800   ; Refresh
                                7200    ; Retry
                                604800  ; Expire
                                86400)  ; Minimum TTL
                        NS      land-5.com.
        
1                       PTR     localhost.

5.4 /var/named/zone/land-5.com

Çʼö ·¹ÄÚµåÀÎ SOA ·¹Äڵ尡 ÇÊ¿äÇϸç, NS ·¹Äڵ嵵 ÇÊ¿äÇÏ´Ù. secondary ³×ÀÓ ¼­¹ö·Î ns2.psi.netÀÌ ÀÖÀ½À» ¾Ë¼ö ÀÖ´Ù. ÀÌ ¼­¹ö´Â ¹é¾÷¿ëÀ¸·Î Ç×»ó »çÀÌÆ® ¹Û¿¡ ÀÖ¾î¾ß ÇÑ´Ù. ¶ÇÇÑ ´Ù¾çÇÑ ÀÎÅÍ³Ý ¼­ºñ½º¸¦ ´ã´çÇÏ´Â ¸¶½ºÅÍ È£½ºÆ®·Î lang-5¸¦ µÎ¾ú°í, ±×·¯ÇÑ Ã³¸®¸¦ CNAMEÀ¸·Î ÇØ°áÇÏ°í ÀÖÀ½À» ¾Ë ¼ö ÀÖ´Ù. (A ·¹Äڵ带 »ç¿ëÇÑ ¹æ¹ýµµ ÀÖ´Ù.)

SOA Ç׸ñ¿¡¼­ ¾Ë ¼ö ÀÖµíÀÌ, Á¸ ÆÄÀÏÀº originÀÌ land-5.comÀÌ¸ç °ü¸®ÀÚ´Â root@land-5.comÀÌ´Ù. hostmaster´Â °ü¸®ÀÚÀÇ ÁÖ¼Ò·Î ÀÚÁÖ »ç¿ëµÇ´Â °ÍÀÌ´Ù. ½Ã¸®¾ó ³Ñ¹ö´Â ÀÇ·ÊÀûÀ¸·Î yyyymmdd Çü½Ä¿¡ ±×³¯ÀÇ ½Ã¸®¾ó ³Ñ¹ö¸¦ µ¡ºÙÀδÙ. ¾Æ·¡¼­ º¸¸é ¾Æ¸¶ ÀÌ Áö¿ª ÆÄÀÏÀº 1996³â 9¿ù 20ÀÏ¿¡ 6¹ø° ¼öÁ¤ÇÑ ¹öÀüÀÏ °ÍÀÌ´Ù. ½Ã¸®¾ó ³Ñ¹ö´Â ÇѹæÇâÀ¸·Î¸¸ Áõ°¡ÇØ¾ß ÇÔÀ» ¸í½ÉÇÏÀÚ. ¿©±â¼­´Â ±×³¯ÀÇ ½Ã¸®¾ó ³Ñ¹ö°¡ ÇÑÀÚ¸®´Ù. ±×·¯¹Ç·Î 9¹øÀ» ÆíÁýÇÏ°í ³ª¼­ ¶Ç ÆíÁýÇÏ·Á¸é ³»ÀÏÀ» ±â´Ù·Á¾ß ÇÒ °ÍÀÌ´Ù. µÎ ÀÚ¸®¼ö »ç¿ëÀ» °í·ÁÇÏÀÚ.


@       IN      SOA     land-5.com. root.land-5.com. (
                        199609206       ; serial, todays date + todays serial #
                        8H              ; refresh, seconds
                        2H              ; retry, seconds
                        1W              ; expire, seconds
                        1D )            ; minimum, seconds
                NS      land-5.com.
                NS      ns2.psi.net.
                MX      10 land-5.com.  ; Primary Mail Exchanger

localhost       A       127.0.0.1

router          A       206.6.177.1
        
land-5.com.     A       206.6.177.2
ns              A       206.6.177.3
www             A       207.159.141.192

ftp             CNAME   land-5.com.
mail            CNAME   land-5.com.
news            CNAME   land-5.com.

funn            A       206.6.177.2
@               TXT     "LAND-5 Corporation"

;
;       Workstations
;
ws-177200       A       206.6.177.200
                MX      10 land-5.com.   ; Primary Mail Host
ws-177201       A       206.6.177.201
                MX      10 land-5.com.   ; Primary Mail Host
ws-177202       A       206.6.177.202
                MX      10 land-5.com.   ; Primary Mail Host
ws-177203       A       206.6.177.203
                MX      10 land-5.com.   ; Primary Mail Host
ws-177204       A       206.6.177.204
                MX      10 land-5.com.   ; Primary Mail Host
ws-177205       A       206.6.177.205
                MX      10 land-5.com.   ; Primary Mail Host
; {Many repetitive definitions deleted - SNIP}
ws-177250       A       206.6.177.250
                MX      10 land-5.com.   ; Primary Mail Host
ws-177251       A       206.6.177.251
                MX      10 land-5.com.   ; Primary Mail Host
ws-177252       A       206.6.177.252
                MX      10 land-5.com.   ; Primary Mail Host
ws-177253       A       206.6.177.253
                MX      10 land-5.com.   ; Primary Mail Host
ws-177254       A       206.6.177.254
                MX      10 land-5.com.   ; Primary Mail Host

land-5ÀÇ ³×ÀÓ ¼­¹ö¸¦ È®ÀÎÇØ º¸¸é ¾Ë°ÚÁö¸¸ È£½ºÆ®¸íÀÌ ws_numberÀÇ Çü½ÄÀ¸·Î µÇ¾î ÀÖ´Ù. ¿¹ÀüÀÇ bind 4 ¹öÀü¿¡¼­´Â named°¡ ½ÃÀÛÇÒ ¶§, È£½ºÆ®¸íÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ´Â ¹®ÀÚ Á¦ÇÑÀ» °­Á¦·Î ÁؼöÇÏ¿´´Ù. ±×·¯³ª bind-8¿¡¼­´Â ÀÛµ¿ÇÏÁö ¾ÊÀ¸¹Ç·Î '_'(underline) ´ë½Å '-'(dash)·Î ¹Ù²å´Ù.

¶Ç Çϳª ÁÖ¸ñÇÒ »çÇ×Àº ¿÷½ºÅ×À̼ǵéÀº °³°³ÀÇ À̸§ÀÌ ¾ø°í IP ¼ýÀÚÀÇ ³¡ µÎºÎºÐÀ» À̸§À¸·Î »ç¿ëÇÑ´Ù´Â Á¡ÀÌ´Ù. ÀÌ·± °ü·Ê´Â À¯Áö º¸¼ö¸¦ »ó´çÈ÷ ´Ü¼øÈ­ÇÒ ¼ö ÀÖ´Ù. ´ë½Å Á¶±ÝÀº ºñÀΰ£ÀûÀ̶ó °í°´µé »çÀÌ¿¡ ºÒ¸¸ÀÇ ¿äÀÎÀÌ µÉ¼ö ÀÖ´Ù.

¶ÇÇÑ funn.land-5.comÀÌ land-5.com¿¡ ´ëÇÑ ¾Ë¸®¾Æ½ºÀÓÀ» ¾Ë ¼ö ÀÖ´Ù. ±×·¯³ª CNAME Ç׸ñÀÌ ¾Æ´Ñ A Ç׸ñÀ» »ç¿ëÇÑ´Ù.

5.5 /var/named/zone/206.6.177

ÀÌ ÆÄÀÏ¿¡ ´ëÇؼ­´Â Àá½Ã ÈÄ¿¡ ¼³¸íÇÒ °ÍÀÌ´Ù.


@               IN      SOA     land-5.com. root.land-5.com. (
                                199609206       ; Serial
                                28800   ; Refresh
                                7200    ; Retry
                                604800  ; Expire
                                86400)  ; Minimum TTL
                        NS      land-5.com.
                        NS      ns2.psi.net.
;
;       Servers
;
1       PTR     router.land-5.com.
2       PTR     land-5.com.
2       PTR     funn.land-5.com.
;
;       Workstations
;
200     PTR     ws-177200.land-5.com.
201     PTR     ws-177201.land-5.com.
202     PTR     ws-177202.land-5.com.
203     PTR     ws-177203.land-5.com.
204     PTR     ws-177204.land-5.com.
205     PTR     ws-177205.land-5.com.
; {Many repetitive definitions deleted - SNIP}
250     PTR     ws-177250.land-5.com.
251     PTR     ws-177251.land-5.com.
252     PTR     ws-177252.land-5.com.
253     PTR     ws-177253.land-5.com.
254     PTR     ws-177254.land-5.com.

¿ªº¯È¯ Á¸Àº Àç³­ÀÇ ´ëºÎºÐÀ» Àç³­À» ÀÏÀ¸Å°´Â ¼³Á¤ ºÎºÐÀ¸·Î º¸ÀδÙ. ¿ªº¯È¯ Á¸Àº ÄÄÇ»ÅÍÀÇ IP ÁÖ¼Ò¸¦ ¾Ë ¶§ ±× È£½ºÆ®¸íÀ» ã´Âµ¥ »ç¿ëµÈ´Ù. ¿¹: ¿©·¯ºÐÀÇ ÄÄÇ»ÅÍ°¡ IRC ¼­¹öÀÌ°í IRC Ŭ¶óÀ̾ðÆ®ÀÇ Á¢¼ÓÀ» Çã¿ëÇÑ´Ù. ±×·¯³ª ±× ÄÄÇ»ÅÍ´Â ³ë¸£¿þÀÌ ¾ð¾î Àü¿ëÀÇ IRC ¼­¹ö·Î ³ë¸£¿þÀÌ¿Í ´Ù¸¥ ½ºÄ­´Ù³ªºñ¾Æ ¹Ýµµ ±¹°¡¿¡ Àִ Ŭ¶óÀ̾ðÆ®ÀÇ Á¢¼Ó ¸¸À» Çã¶ôÇÏ°í ½Í´Ù. Ŭ¶óÀ̾ðÆ®·ÎºÎÅÍ Á¢¼ÓÀÌ ÀÖÀ»¶§ C ¶óÀ̺귯¸®´Â Á¢¼ÓÇϴ Ŭ¶óÀ̾ðÆ® ÄÄÇ»ÅÍÀÇ IP ÁÖ¼Ò¸¦ ¾Ë·ÁÁÙ ¼ö ÀÖ´Ù. ³×Æ®¿÷À» Áö³ª´Â ¸ðµç ÆÐŶ¿¡ Ŭ¶óÀ̾ðÆ® ÄÄÇ»ÀÇ IP ÁÖ¼Ò°¡ Æ÷ÇԵǾî Àֱ⠶§¹®ÀÌ´Ù. ÀÌÁ¦ ¿©·¯ºÐÀÇ IRC ¼­¹ö´Â ÁÖ¾îÁø IP ÁּҷΠȣ½ºÆ®¸íÀ» ã´Â gethostbyaddr ÇÔ¼ö¸¦ È£ÃâÇÒ ¼ö ÀÖ´Ù. Gethostbyaddr ÇÔ¼ö´Â DNS ¼­¹ö¸¦ ãÀ» °ÍÀÌ´Ù. ±×¸®°í´Â ÄÄÇ»Å͸¦ ã´Â Ç×Çظ¦ ÇÑ´Ù. ws-177200.land-5.com¿¡¼­ Ŭ¶óÀ̾ðÆ®°¡ Á¢¼ÓÇß´Ù°í °¡Á¤Çϸé C ¶óÀ̺귯¸®°¡ IRC ¼­¹ö¿¡°Ô °Ç³×´Â IP ÁÖ¼Ò´Â 206.6.177.200ÀÌ´Ù. ÀÌ ÄÄÇ»ÅÍÀÇ È£½ºÆ®¸íÀ» ãÀ¸·Á¸é 200.177.6.206.in-addr.arpaÀ» ã¾Æ¾ß ÇÑ´Ù. DNS ¼­¹ö´Â ¸ÕÀú arpa. ¼­¹ö¸¦ ã´Â´Ù. ±×·± ´ÙÀ½ in-addr.arpa. ¼­¹ö¸¦, ±× ´ÙÀ½¿¡´Â 206À», ±× ´ÙÀ½¿¡´Â 6À», ¸¶Áö¸·À¸·Î land-5¿¡¼­ 177.6.206.in-addr.arpa zoneÀ» ´ã´çÇÏ´Â ¼­¹ö¸¦ ã´Â´Ù. °Å±â¼­ ¸¶Ä§³» 200.177.6.206.in-addr.arpa¶ó´Â ÁÖ¼Ò¿¡ `PTR ws-177200.land-5.com'À̶ó´Â ·¹Äڵ尡 ¸ÅÇεǾî ÀÖ´Ù´Â ÀÀ´äÀ» ¾òÀ» ¼ö ÀÖ´Ù. ±× Àǹ̴ 206.6.177.200ÀÇ È£½ºÆ®¸íÀÌ ws-177200.land-5.comÀ̶ó´Â °ÍÀ» ¶æÇÑ´Ù. prep.ai.mit.eduÀÇ ¼³¸í¿¡¼­¿Í ¸¶Âù°¡Áö·Î ÀÌ ¼³¸íÀº Ç㱸¿¡ °¡±õ´Ù.

IRC ¼­¹öÀÇ ¿¹·Î µ¹¾Æ°¡ÀÚ. À§ÀÇ IRC ¼­¹ö´Â *.no, *.se, *.dk¿Í °°Àº ½ºÄ­´Ù³ªºñ¾Æ ¹Ýµµ ÁÖº¯±¹¿¡¼­ÀÇ Á¢¼Ó¸¸À» Çã¿ëÇÏ°íÀÚ ÇÑ´Ù. ws-177200.land-5.com´Â ÇØ´ç »çÇ×ÀÌ ¾øÀ¸¹Ç·Î Á¢¼ÓÀ» °ÅºÎÇÒ °ÍÀÌ´Ù. in-addr.arpa Á¸¿¡ 206.2.177.200ÀÇ ¿ªº¯È¯ ¸ÅÇÎ(reverse mapping)ÀÌ ¾ø´Ù¸é ¼­¹ö´Â À̸§À» ¾Ë¼ö ¾øÀ» °ÍÀÌ°í °á±¹Àº 206.2.177.200¶ó´Â ¼ýÀÚ¸¦ *.no, *.se, *.dk¿Í ºñ±³ÇÏ°Ô µÉ °ÍÀÌ´Ù.

¿ªº¯È¯ ¸ÅÇÎ(reverse lookup mapping)ÀÌ ¼­¹öÇÑÅ׸¸ Áß¿äÇÏ´Ù°í ÇÏ´Â À̵µ ÀÌÀ¸¸ç, ÀüÇô Áß¿äÇÏÁö ¾Ê´Ù°í ¸»ÇÏ´Â À̵µ ÀÖ´Ù. ±×·¯³ª »ç½ÇÀº ¸Å¿ì Áß¿äÇÑ´Ù. ¸¹Àº ftp, news, IRC, ½ÉÁö¾î http(WWW) ¼­¹öµµ ¸î¸îÀº Ŭ¶óÀ̾ðÆ® ÄÄÇ»ÅÍÀÇ À̸§À» ãÀ» ¼ö ¾ø´Ù¸é Á¢¼ÓÀ» ºÒÇãÇÒ °ÍÀÌ´Ù. ±×·¯¹Ç·Î ÄÄÇ»ÅÍÀÇ ¿ªº¯È¯ ¸ÅÇÎÀº ¹Ýµå½Ã ÇÊ¿äÇÏ´Ù.


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