Subject : Axil W/S »ó¿¡ NISÀÇ ¼³Ä¡ ¹× ±× ±â´É 

Description :


1. °³ ¿ä

     NIS´Â Name Information ServiceÀÇ ¾àÀڷμ­ ÈçÈ÷ YP(Yellow Pages)¶ó°í  ºÒ¸®´Â 
   RPC(Remote Procedure Call)¸¦ ÀÌ¿ëÇÑ ÀÀ¿ë°èÃþÀÇ ¼ÒÇÁÆ®¿þ¾î¸¦ ¸»ÇÑ´Ù. ¹Ì±¹ÀÇ °æ¿ì
   ÀüÈ­¹øÈ£ºÎ Ã¥À» yellow bookÀ̶ó ºÎ¸£´Âµ¥ YPµµ ÀÌ¿Í ºñ½ÁÇÑ Àǹ̸¦ °¡Áö¸ç µð·ºÅ丮 ¼­ºñ½º¸¦
   Á¦°øÇÑ´Ù.

     YP´Â SUN¿¡¼­ ¸¸µç ¼ÒÇÁÆ®¿þ¾î·Î¼­ ÇöÀç SUN ½Ã½ºÆÀ ÀÌ¿Ü¿¡ Pyramid»çÀÇ Pyramid
   ±âÁ¾, IBMÀÇ RS6000µîÀÇ ½Ã½ºÆÀ¿¡¼­µµ ±× ¼ÒÇÁÆ®¿þ¾î¸¦ Á¦°øÇÏ°í ÀÖ´Ù. ÇÑÆí  YP¶õ
   ¿ë¾î´Â ¿µ±¹ÀÇ United Kingdom of British Telecommunications plcÀÇ °ø½Ä  µî·Ï»ó
   Ç¥À̹ǷΠ1991³â¿¡ SUN¿¡¼­ ±× µ¿¾È »ç¿ëÇÏ´ø YP ¿ë¾î¸¦ NIS·Î º¯°æÇÏ¿´´Ù. ±×·¯³ª
   SUN ¿öÅ©½ºÅ×À̼ǿ¡¼­ »ç¿ëµÇ°í ÀÖ´Â NIS°ü·Ã daemonµéÀÇ À̸§Àº ¿©ÀüÈ÷  'yp'¶ó´Â
   ´Ü¾î¸¦ »ç¿ëÇÏ°í ÀÖ´Ù (¿¹¸¦ µé¾î ypserv, ypbind,  rpc.ypupdated,  ypxfrd  µîÀÌ
   ´Ù).

     º» °í¿¡¼­´Â NISÀÇ ´Ù¾çÇÑ ±â´É ÀüºÎ¸¦  ¼³¸íÇÏÁö´Â  ¾Ê°í  DNS¿¡  ¿¬µ¿ÇÑ name 
   serviceÀÇ Á¦°ø ¹× ±× ¼³Ä¡ ¹æ¹ý , ¹®Á¦Á¡ ¹ß»ý½Ã Áø´Ü¹ý¿¡ ´ëÇØ ¼³¸íÇÑ´Ù.

2.  NISÀÇ ±¸¼º ¹× ±â´É 

    °¡. Master ¼­¹ö¿Í Slave ¼­¹ö ±×¸®°í Ŭ¶óÀ̾ðÆ®

       NIS¸¦ ¼³Ä¡ÇÒ¶§ NISÀÇ ÇüŸ¦ °áÁ¤ÇÏ°Ô µÇ´Âµ¥, È£½ºÆ®¸¦ ¼­¹ö·Î ¿Ã¸®´Â  °æ¿ì
     master ¼­¹ö¿Í slave ¼­¹öÁß Çϳª¸¦ ¼±ÅÃÇØ¾ß ÇÑ´Ù. ±×¸®°í domainnameÀ» ¼³Á¤ÇØ
     ¾ß Çϴµ¥ À̶§ »ç¿ëÇÏ´Â µµ¸ÞÀγ×ÀÓÀº DNSÀÇ domainname°ú´Â º°°³ÀÓÀ» ÁÖÀÇÇؾß
     ÇÑ´Ù.

       Master ¼­¹ö´Â ÇÑ µµ¸ÞÀÎÀÇ DB Á¤º¸¸¦ À¯Áö °ü¸®Çϸç, ¼­ºñ½º ¿äûÀÌ ¿À¸é  ±×
     ¿¡ ´ëÇÑ ÀÀ´äÀ» ÇØ ÁØ´Ù. ¶ÇÇÑ slave ¼­¹ö¿¡°Ô ÀÚ½ÅÀÌ °¡Áö°í ÀÖ´Â µµ¸ÞÀÎ DB Á¤
     º¸¸¦ ¹é¾÷Çϵµ·Ï Àü¼ÛÇØ Á־ master ¼­¹ö°¡ ¼­ºñ½º¸¦ Á¦°øÇÏÁö  ¸øÇÏ´Â  °æ¿ì
     ´ë½Å ¼­ºñ½º¸¦ Á¦°øÇÒ ¼ö ÀÖµµ·Ï ÇØ ÁØ´Ù.

        Slave ¼­¹ö´Â ¾Õ¿¡¼­µµ ¾ð±ÞÇßÁö¸¸ Master ¼­¹ö°¡ °¡Áö°í ÀÖ´Â µµ¸ÞÀÎ DB  Á¤
     º¸¸¦ º¹»çÇÏ¿© °£Á÷ÇÏ°í ÀÖ´Ù°¡ master ¼­¹öÀÇ Àå¾Ö ¹ß»ý½Ã¿¡ ´ë½ÅÇؼ­ ¼­ºñ½º¸¦     Á¦°øÇØ ÁØ´Ù.

       È£½ºÆ®¸¦ Ŭ¶óÀ̾ðÆ®·Î ¼³Ä¡ÇÏ´Â °æ¿ì º°µµÀÇ ¼ÒÇÁÆ®¿þ¾î ¼³Ä¡´Â ÇÊ¿äÇÏÁö  ¾Ê
     À¸¸ç ´ÜÁö ypbind daemon¸¸ ½ÇÇà½ÃÄÑ ÁÖ¸é µÈ´Ù.

    ³ª. ÀÏ¹Ý ÆÄÀÏÀ» DBM ÆÄÀÏ·ÎÀÇ  º¯È¯ 

       NIS¸¦  master  ¼­¹ö  ÇüÅ·Π ¼³Ä¡ÇÏ°Ô  µÇ¸é  /etc/hosts, /etc/networks, 
     /etc/ethers, /etc/services, /etc/protocols ÆÄÀϵéÀ» DBM ÇüÅÂÀÇ ÆÄÀÏ·Î  »õ·Î
     ¸¸µé¾î¼­ ÀÚ½ÅÀÇ DB ³»¿ëÀ¸·Î »ç¿ëÇÏ°Ô µÈ´Ù. ±×¸®°í, À̵é ÀÏ¹Ý ÆÄÀϵéÀ»  »ç¿ë
     ÇØ¾ß ÇÏ´Â °æ¿ì À̵é ÆÄÀÏÀ» »ç¿ëÇÏÁö ¾Ê°í NIS ÀÚ½ÅÀÇ DB¸¦  »ç¿ëÇÑ´Ù.  ¿©±â¼­
     ÁÖÀÇÇÒ Á¡Àº ½Ã½ºÆÀÀÌ ºÎÆÃÀÌ µÈ ÈÄ NIS ¼­ºñ½º°¡ Á¦°øµÇ¹Ç·Î ºÎÆýÿ¡´Â °¢°¢ÀÇ
     ÀÏ¹Ý ÆÄÀϵéÀÌ »ç¿ëµÈ´Ù´Â °ÍÀÌ´Ù.
        
       ÇÑÆí NIS¸¦ »ç¿ëÇÏ°Ô µÇ¸é ¾Õ¿¡¼­ ¾ð±ÞÇÑ ÀÏ¹Ý ÆÄÀϵéÀÇ ³»¿ëÀ» º¯°æÇÏ´Â °æ¿ì
     ¹Ýµå½Ã NISÀÇ DBÀÇ ³»¿ëµµ º¯°æ½ÃÄÑ ÁÖ¾î¾ß ÇÑ´Ù.  NIS DB º¯°æ ¹æ¹ýÀº /var/yp 
     µð·ºÅ丮¿¡¼­ º¯°æµÈ ÆÄÀÏÀÇ À̸§À» ´ÜÁö  make  µÚ¿¡´Ù  Àû¾îÁÖ¸é  µÈ´Ù.  °¡·É
     '/etc/hosts' ÆÄÀÏÀÇ ³»¿ëÀ» º¯°æÇÑ °æ¿ì ´ÙÀ½°ú °°ÀÌ '/var/yp'  µð·ºÅ丮·Î °¡
     ¼­ ´ÙÀ½ÀÇ ¸í·ÉÀ» ½ÇÇà½ÃÄÑ ÁÖ¾î¾ß ÇÑ´Ù.

          $ vi /etc/hosts    
               .
            ÀÛ¾÷ÀÌ ³¡³­ ÈÄ
               .
          $ cd /var/yp
          $ make hosts

    ´Ù. NIS °ü·Ã daemonÀÇ ±â´É

       NIS¸¦ ¼³Ä¡ÇÏ°í ½ÇÇà½ÃÄÑ¾ß ÇÏ´Â ±âº»ÀûÀÎ daemonÀ¸·Î´Â ypserv, ypbind°¡  ÀÖ
     À¸¸ç, ±× ¹Û¿¡ rpc.ypupdated µîÀÌ Àִµ¥ ÀÌ´Â NISÀÇ »ç¿ëȯ°æÀ» °í·ÁÇÏ¿© »ç¿ë
       Ypserv´Â /usr/etc/ypserv¿¡ À§Ä¡Çϸç ypbindÀÇ ¼­ºñ½º ¿äûÀ» ó¸®ÇØ ÁÖ´Â ±â
     ´ÉÀ» ¼öÇàÇϸç, È£½ºÆ®ÀÇ µµ¸ÞÀγ×ÀÓÀ¸·Î ¼³Á¤µÈ /var/yp/'domainname' µð·ºÅ丮
     ÀÇ DBM ÆÄÀϵéÀ» °¡Áö°í ¼­ºñ½º¿¡ ´ëÇÑ ÀÀ´äÀ» ÇÏ°Ô µÈ´Ù.

       Ypbind´Â daemonÀ¸·Î ½ÇÇàµÇ¸é¼­ ÀÚ½ÅÀÇ NIS ¼­¹ö  ¼³Á¤À»  À§ÇØ  broadcast¸¦
     Çϴµ¥, À̶§ domainnameÀÌ °°Àº È£½ºÆ®Áß NIS ¼­¹ö°¡ ÀÀ´äÀ» ÇÏ¸é ±×  È£½ºÆ®¸¦
     ¸¦ ÀÚ½ÅÀÇ NIS ¼­¹ö·Î bindingÇÑ´Ù.

       ´ÙÀ½ÀÇ ±×¸²Àº ypserv¿Í ypbind(¾ÕÀÇ 2°³´Â  daemon  ÇüÅ·Π ½ÇÇàµÊ)  ±×¸®°í
     ypcat ¸í·É¾î°£ÀÇ ½ÇÇà È帧À» º¸¿© ÁÖ´Â °ÍÀÌ´Ù. 

                                         +--------+       

                       |                 +--------+                  |  
                       | 1                                         2 |  
                       |                                             |  
                       |                                             V  
                   +--------+                                     +--------+
                   | YPCAT  |---------------------------------->  | YPSERV |
                   +--------+                3                    +--------+


                        1 : ¼­¹ö°¡ ¾îµð ÀÖ´Â³Ä ?
                        2 : ´©°¡ ¼­¹öÀΰ¡ ?
                        3 : Á¤º¸´Â ¾îµð¿¡ Àִ°¡ ?

                             [±×¸² 1]  ypbindÀÇ ½ÇÇà °úÁ¤  

3. NIS ¼³Ä¡ ¹æ¹ý 

     ¸ÕÀú ¿©±â¿¡¼­ ¾ð±ÞÇÏ´Â NIS ¼³Ä¡´Â SUN OS Ver.4.1 ÀÌ»óÀ» »ç¿ëÇÏ°í ÀÖ´Ù´Â  °Í
   À» ÀüÁ¦·Î À̾߱âÇÑ´Ù. ¸¸¾à¿¡ SUN OS Ver.4.0.3À» »ç¿ëÇÏ´Â °æ¿ì  ¾à°£ÀÇ  Â÷ÀÌ°¡   ÀÖ´Ù.

    °¡. super user·Î ÀüȯÀ» ÇÑ´Ù.

       # su

    ³ª. domainnameÀ» Á¤ÇÑ´Ù. À̸§ÀÇ ±æÀÌ´Â 256±îÁö °¡´ÉÇϳª °¡´ÉÇÑ  ªÀº  À̸§ÀÌ
       ÁÁ´Ù.  ¸í·É¾î domainnameÀ» ÀÌ¿ëÇØ ÇöÀç ¼³Á¤µÇ¾î ÀÖ´Â  À̸§À» ¾Ë ¼ö°¡ 
       Àִµ¥, ´ë°³ ±âº»ÀûÀ¸·Î nonameÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Â  °æ¿ì°¡  ¸¹À¸
       ´Ï, ¿øÇÏ´Â À̸§À¸·Î ¹Ýµå½Ã ¼³Á¤ÇØ¾ß ÇÑ´Ù. domainnameÀº ¸í·É¾îd·Î Á÷Á¢  Á¤
       ÇØÁÙ ¼ö ÀÖÀ¸³ª, ÄÄÇ»ÅÍ°¡ ºÎÆýà /etc µð·ºÅ丮¿¡ ÀÖ´Â shell ½ºÅ©¸³Æ®¸¦  Åë
       ÇØ /etc/defaultdomain ÆÄÀÏ¿¡ ÀûÇôÁø À̸§À¸·Î domainnameÀ» ¼³Á¤ÇϹǷΠ¹Ýµå
       ½Ã /etc/defaultdomain  ÆÄÀÏ¿¡ Àû¾î ÁÖ¾î¾ß ÇÑ´Ù.(¸í·É¾î·Î domainnameÀ»  È®
       ÀÎ, ȤÀº Á¤ÇØÁÖ·Á¸é ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µÈ´Ù).

       # domainname 
       noname
       #
       # domainname aa.co.kr
       #
       # domainame
       aa.co.kr 
                          
    ´Ù. NIS service¿¡ °ü·ÃµÈ ÄÄÇ»ÅÍÁß master server, slave server, client¸¦ Á¤ÇÏ
       ¸ç, ÄÄÇ»Å͵éÀÌ hostnameÀ» °¡Á³´ÂÁö È®ÀÎÇÑ´Ù. hostnameÀº ÄÄÇ»ÅÍ°¡ booting
       ½Ã¿¡ /etc/hostname.xx# ÆÄÀÏ¿¡ ÀúÀåµÈ ³»¿ëÀ¸·Î Á¤ÇØÁø´Ù. xx#´Â  ÄÄÇ»ÅÍ¿¡¼­
       »ç¿ëÇÏ´Â ethernet controller chipÀÌ ¾î´Àȸ»ç¿¡¼­ ¸¸µé¾îÁ³´ÂÁö¿¡ µû¶ó ´Þ¶ó
       Áø´Ù. (command·Î  hostnameÀ» È®ÀÎ, ȤÀº Á¤ÇØÁÖ·Á¸é ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µÈ´Ù.

       # hostname 
       noname
       #
       # hostname han
       #
       # hostname
       han 

    ¶ó.  /etc/hosts  ÆÄÀÏÀÇ  ³»¿ëÀ»  ÀûÀýÈ÷  ¼öÁ¤ÇÏ´Ù.  °¡´ÉÇÑ  °¢   ½Ç¿¡¼­   ÇÑ
       administrator°¡ °ü¸®ÇÒ ¼ö ÀÖ´Â ÄÄÇ»Å͵鸸 Æ÷ÇԵǵµ·Ï ÇÑ´Ù. Áï  han°ú ns
       ¶ó´Â ÄÄÇ»ÅÍ°¡ ÀÖÀ¸¸é ´ÙÀ½°ú °°ÀÌ /etc/hosts ÆÄÀÏÀ» ÀÛ¼ºÇÏ¸ç  Æ¯È÷  À¯ÀÇÇÒ
       Á¡Àº loopback address (127.0.0.1)´Â ¹Ýµå½Ã Æ÷ÇԵǵµ·Ï ÇÑ´Ù.

           +---------------------------------------------+
           |                                             |
           |128.134.1.1  han           loghost           |
           |147.6.1.3    ns             ns.kotel.co.kr   |
           |                                             |
           +---------------------------------------------+
    ¸¶. directoryÀÇ À§Ä¡¸¦ '/var/yp' ·Î ¿Å±ä´Ù. ¸¸¾à /var ¹Ø¿¡   yp  directory°¡
       ¾øÀ¸¸é ÇÊ¿äÇÑ directory¿Í ÆÄÀÏ  À»  ¼³Ä¡ÇÑ´Ù.  /var/yp  directory  ¹Ø¿¡´Â
       'Makefile'°ú 'updaters' ÆÄÀÏÀÌ ÀÖ¾î¾ß ÇÑ´Ù.

       #cd /var/yp

    ¹Ù. 'Makefile' ÆÄÀÏ  ÀÇ  ³»¿ëÁß  ´ÙÀ½ÀÇ  lineÀ»  ¼³Á¤ÇÑ´Ù.  ¾Æ¿ï·¯
       /usr/lib directory¿¡ 'NIS.Makefile'ÀÌ ÀÖ´Â °æ¿ì ¶È°°ÀÌ °íÃÄÁØ´Ù.

       º¯°æÀü                          º¯°æÈÄ 

       #B=-b                            B=-b
       B=                               #B=

    »ç. ´ÙÀ½°ú °°ÀÌ 'Makefile'À» ½ÇÇà½ÃÄÑ ÁØ´Ù. '-m'ÀÇ Àǹ̴ YP¸¦ master·Î ¼³Ä¡
       ÇÑ´Ù´Â °ÍÀÌ´Ù. 

      # /usr/etc/yp/ypinit -m

    ¾Æ. 7¹ø°ú °°ÀÌ ¸í·É¾î¸¦ ½ÇÇà½Ã  Å°¸é NIS°¡ ¸î°¡Áö Áú¹®À» ÇÏ°Ô  µÇ´Âµ¥,  À̶§
       ´ÜÁö return key ¿Í ctrl-d¸¦ ÀÌ¿ëÇÏ¿© ÇÏ¸é µÈ´Ù. ±×¸®°í hostnameÀ»  ÀÔ·ÂÇÏ
       µµ·Ï ¿ä±¸Çϸé ctrl-d·Î ºüÁ®³ª¿Í °è¼Ó return key¸¦ Ä¡¸é µÈ´Ù. ¸î°¡Áö error
       °¡ ¹ß»ýÇصµ ¹®Á¦°¡ ¾ø´Ù. ´ÙÀ½Àº ¾Õ¿¡¼­ ½ÇÇàÇÑ ¸í·É¾îÀÇ °á°ú¸¦ º¸¿©ÁÖ´Â °Í
       ÀÌ´Ù(±×¸²ÀڷΠǥ½ÃµÈ °ÍÀº ÀÔ·ÂÇÑ ºÎºÐÀ» ³ªÅ¸³½´Ù).  

      Installing the NIS data base will require that you answer a fewquestions.
      Do you want this procedure to quit on non-fatal errors? [y/n: n]  n
      OK, please remember to go back and redo manually whatever fails.  If you
      don't, some part of the system (perhaps the NIS itself) won't work.

      At this point, we have to construct a list of the hosts which will run NIS
      servers.  tao is in the list of NIS server hosts.  Please continue to add
     the names for the other hosts, one per line.  When you are done with the
      list, type a .
              next host to add:  han
              next host to add:  ^D  
      The current list of NIS servers looks like this:
       
      han
       
      Is this correct?  [y/n: y]  y
      There will be no further questions. The remainder of the procedure should
     take5 to 10 minutes.
      Building /var/yp/babo/ypservers...
      Running /var/yp/Makefile...
      updated group
      updated hosts
      make: Warning: Don't know how to make target `/etc/ethers'
      Current working directory /var/yp
      updated networks
      updated rpc
      updated services
      updated protocols
      make: Warning: Don't know how to make target `/etc/netgroup'
      Current working directory /var/yp
      make: Warning: Don't know how to make target `/etc/bootparams'
      Current working directory /var/yp
      updated publickey
      updated netid
      /usr/etc/yp/makedbm /etc/netmasks /var/yp/`domainname`/netmasks.byaddr; 
      updated netmasks
      couldn't find /etc/timezone
      couldn't find /etc/auto.master

    ÀÚ. À̷μ­ NIS¸¦ ¿Ã¸®±â À§ÇÑ ±âº»ÀûÀÎ ÀÛ¾÷Àº ³¡³µ°í, ±× ´ÙÀ½Àº ÇÊ¿äÇÑ daemon
	À» ½ÇÇà½ÃÄÑ¾ß ÇÑ´Ù.

       # ypserv
       # ypbind

   Â÷. 9¹ø±îÁöÀÇ ÀÛ¾÷Àº NIS¸¦ ¼³Ä¡ÇÏ´Â ÀÛ¾÷ÀÌ°í  ¿©±â¿¡¼­ ÇÏ´Â ÀÛ¾÷Àº DNS¸¦ ¼³Ä¡
       Çϱâ À§ÇÑ ÀÛ¾÷ÀÌ´Ù. ÇöÀç ¿¬±¸°³¹ß´Ü³»ÀÇ  ´ëºÎºÐÀÇ ÄÄÇ»ÅÍ´Â  remote server
       ÀÇ ÇüÅ·ΠDNS°¡ ¼³Ä¡µÇ¾î ÀÖ´Ù. SUNÀÇ °æ¿ì /etc ¹Ø¿¡ resolv.conf ÆÄÀÏÀ» ¸¸
       µé¾î ÁÖ¸é µÈ´Ù. ´ÙÀ½Àº resolv.conf ÆÄÀÏÀÇ ³»¿ëÀÌ´Ù.
             

           +---------------------------------------------+
           |; /etc/resolv.conf, 1991/7/8 by jypark       |
           |;                                            |
           |                                             |
           |domain          kotel.co.kr                  |
           |                                             |
           |nameserver      147.6.1.2                    |
           |nameserver      147.6.1.3                    |
           |nameserver      147.6.1.2                    |
           |nameserver      147.6.1.3                    |
           |                                             |
           +---------------------------------------------+

    Ä«. ±× ¹ÛÀÇ NIS °ü·Ã daemonÀÌ ´õ ÀÖÁö¸¸ ÇÊ¿äÇÏÁö ¾ÊÀ¸¹Ç·Î ,  /etc directory 
        ¿¡ Á¸ÀçÇÏ´Â rc* ÆÄÀÏ¿¡¼­ comment·Î ó¸®ÇÏ¿© ÁÖ¸é µÈ´Ù.

    Âü°í : /etc/hosts ÆÄÀÏÀÇ º¯°æ ³»¿ëÀ» NIS DB·Î ¹Ù²Ù·Á¸é  /var/yp  directoryÀÇ 
       À§Ä¡¿¡¼­ ´ÙÀ½°ú °°ÀÌ ÇÏ¸é µÈ´Ù.

           # make hosts

4.  DNS ¼³Ä¡ ¹æ¹ý

    °¡.  ´ëºÎºÐÀÇ È£½ºÆ®µéÀº ´ÜÁö DNSÀÇ ¼­ºñ½º¸¦ ¿äûÇÏ´Â ÇüÅÂÀ̹ǷΠRemote 
         ServerÇüÅ·ΠDNS¸¦ ¼³Ä¡ÇÏ¸é µÈ´Ù.

     Remote Server´Â resolver ±â´É¸¸À» ÀÌ¿ëÇÏ¿© name service¸¦ ¹Þ´Â ÄÄÇ»Å͸¦  ¸»
   Çϸç, name service request°¡ ¹ß»ýÇÒ ¶§ ¸¶´Ù  Master  Server¿¡  ¿äûÇÏ¿© name 
   service¸¦ ¹Þ´Â´Ù. ±× °á°ú µ¿ÀÏÇÑ È£½ºÆ®¿¡ ´ëÇØ ¿©·¯¹ø name service  request¸¦
   ÇÏ¿©¼­ ºñ È¿À²ÀûÀ̳ª, ¼³Ä¡¹æ¹ýÀÌ °£´ÜÇϹǷΠ´ëºÎºÐ È£½ºÆ®¿¡¼­´Â Remote Server
   ·Î ¼³Ä¡ÇÑ´Ù. ±¸¼º ¹æ¹ýÀº /etc/resolv.conf ÆÄÀϸ¸ ÀÖÀ¸¸é µÇ¸ç, ±× ³»¿ëÀº  ´ÙÀ½
   °ú °°ÀÌ ±¸¼ºÇÏ¸é µÈ´Ù. ¾Æ·¡ ³»¿ë¿¡¼­ domainºÎºÐÀº ÀÚ½ÅÀÇ µµ¸ÞÀÎ À̸§À» ÀûÀ¸
   ¸é µÈ´Ù.

     +---------------------------------------------------------------------+
     |  ; /etc/resolv.conf, 1990/7/8 by jypark                             |
     |  ; resolver file for autoritive master name server for KOTEL.CO.KR  |
     |  ;								   |
     |  domain          kotel.co.kr					   |
     |	nameserver      128.134.1.1
     |  nameserver      147.6.1.2					   |
     +---------------------------------------------------------------------+

    ³ª. SunOs 4.1.1À» »ç¿ëÇÏ´Â °æ¿ì¿¡´Â remote server·Î ¼³Ä¡ÇÏ¿´À»  ¶§
	name ¼­ºñ½º¸¦ ¹ÞÀ» ¼ö¾ø´Â °æ¿ì°¡ ¹ß»ýÇÏ´Â °æ¿ìµµ Àִµ¥ ÀÌ·² ¶§¿¡´Â
	Cache Only ServerÀÇ ÇüÅ·Π¼³Ä¡ÇÑ´Ù. ¼³Ä¡ ¹æ¹ýÀº han.hana.nm.kr:
	~anonymous/hana-info/TM/dns.tarÈ­ÀÏ¿¡ ÀÖ´Â install.txtÈ­ÀÏÀ» ÂüÁ¶ÇÑ´Ù.

5. NIS ¼³Ä¡½ÃÀÇ ÁÖÀÇ ÇÒ Á¡

      È£½ºÆ®¿¡¼­ syslogd¸¦ ½ÇÇàÇÏ´Â °æ¿ì syslog.conf ¿¡ µû¶ó¼­ °¢Á¾ Á¤º¸°¡  ±â·Ï
    µÇ´Âµ¥ ÀÌ °æ¿ì NISÀÇ hosts DB¸¦ À߸ø ±¸¼ºÇϸé È£½ºÆ®ÀÇ ¼º´ÉÀÌ Å©°Ô  ÀúÇϵǴ 
    °æ¿ì°¡ ¹ß»ýÇÑ´Ù. 

              ´ÙÀ½Àº /etc/hosts ÆÄÀÏÀÇ ³»¿ëÀÌ´Ù.

             +-----------------------------------+
             |  147.6.1.2       ring    loghost  |
             +-----------------------------------+

      ¸¸¾à /etc/hosts ÆÄÀÏÀÇ ³»¿ëÀ» ´ÙÀ½°ú °°ÀÌ ¸¸µå´Â °æ¿ì loghostÀÇ Á¤º¸·Î  ÀÎ
    ÇØ È£½ºÆ®°¡ rebootµÇ´Â °æ¿ìµµ ¹ß»ýÇÑ´Ù.                  
                                                                 
             +--------------------------------------------+
             |  127.0.0.1       localhost       loghost   |
             |  147.6.1.2       ring   ring.kotel.co.kr   |    
             +--------------------------------------------+
 
      °£È¤ NISÀÇ daemonÀÌ ½ÇÇàµÇ±â Àü¿¡ default route°¡ ¼³Á¤µÇ¾î ÀÖÁö ¾ÊÀ¸¸é  È£
    ½ºÆ®°¡ hangup »óÅ¿¡ ºüÁö´Â °æ¿ìµµ ¹ß»ýÇϹǷΠ/etc/rc.local ÆÄÀÏ»ó¿¡  ´ÙÀ½°ú 
    °°ÀÌ default route¸¦ ¼³Á¤ÇØ ÁÖ´Â °ÍÀÌ ÁÁ´Ù.

  +--------------------------------------------------------------------------+
  |                                                                          |
  |    #                                                                     |
  |    # Run NIS only if we have a set domainname.                           |
  |    #                                                                     |
  |    dname=`domainname`                                                    |
  |    if [ "$dname" -a -d /var/yp ]; then                                   |
  |            echo "NIS domainname is $dname"                               |
  |            echo -n "starting NIS services:"                              |
  |                                                                          |
  |            if [ -f /usr/etc/ypserv -a -d /var/yp/$dname ]; then          |
  |                    ypserv;         echo -n ' ypserv'                     |
  |    #                                                                     |
  |    #               Master NIS server runs the XFR daemon                 |
  |    #                                                                     |
  |    #               ypxfrd;         echo -n ' ypxfrd'                     |
  |            fi                                                            |
  |                                                                          |
  |            if [ -f /etc/security/passwd.adjunct ]; then                  |
  |                    ypbind -s;      echo -n ' ypbind'                     |
  |            else                                                          |
  |                    ypbind;         echo -n ' ypbind'                     |
  |                                                                          |
  |            if [ -f /usr/etc/rpc.ypupdated -a -d /var/yp/$dname ]; then   |
  |                    rpc.ypupdated;  echo -n ' ypupdated'                  |
  |            fi                                                            |
  |            echo '.'                                                      |
  |    fi                                                                    |
  +--------------------------------------------------------------------------+

      ±×¸®°í sendmail daemonÀº NIS¸¦ ÅëÇØ ÀüÀÚ¿ìÆíÀ» Àü¼ÛÇϹǷΠ¹Ýµå½Ã NIS¸¦  ¼³
    Ä¡ÇÏ°í ³ª¼­ domainnameÀ» ¹Ý¿µ½ÃÄÑ¾ß ÇÑ´Ù. ±×·¯±â À§Çؼ­´Â /etc/aliases  ÆÄÀÏ
    À» dbm ÆÄÀÏ·Î ¹Ù²Ù±â À§ÇØ newaliases¸¦ ½ÇÇà½ÃÄÑ ÁØ´Ù.


6. °á ·Ð

    º»°í¿¡¼­´Â Name Server ¿î¿µ°ú °ü·ÃÇÏ¿© SUNÀ» Áß½ÉÀ¸·Î NIS ±â´É ¹× ¼³Ä¡¹æ¹ý¿¡
   ´ëÇÏ¿© ¼Ò°³ÇÏ¿´´Ù.  NIS´Â »ç¿ëÇϱⰡ Èûµé¾î¼­ ´ëºÎºÐÀÇ È£½ºÆ® °ü¸®ÀÚµéÀÌ »ç¿ë
   ÇÏÁö ¾ÊÀ¸·Á Çϳª, ³×Æ®¿öÅ© ȯ°æÀ» ÃÖ´ëÇÑ ÀÌ¿ëÇϱâ À§Çؼ­´Â ²À  »ç¿ëÇØ¾ß  ÇÏ´Â
   ±â´ÉÀÌ´Ù. º»°í¿¡¼­ ¼Ò°³ÇÑ ÀڷḦ Âü°í»ï¾Æ È£½ºÆ®ÀÇ È¯°æ¿¡ ¸ÂÃß¾î NIS¸¦ ¼³Ä¡ÇÏ
   ¸é »ç¿ëÀÚ È¯°æ¿¡ ¸¹Àº µµ¿òÀÌ µÇ¸®¶ó »ý°¢µÈ´Ù. 
 
 

Revision History

ÀÛ¼ºÀÏÀÚ : 96.06.17
ÀÛ¼ºÀÚ : ÀÌÁø¼ö

¼öÁ¤ÀÏÀÚ : 
¼öÁ¤ÀÚ