Unix/Solaris °ü·Ã°Ô½ÃÆÇ |
---|
2000/07/19(19:55) from 203.254.154.69 | |
ÀÛ¼ºÀÚ : °ÁÙ±â (jkkang65@hanmail.net) | Á¶È¸¼ö : 1863 , ÁÙ¼ö : 80 |
Secondary DNS Server |
---|
1. ¼³Á¤ Primary nameserver name : sun.jic.co.kr Primary nameserver IP address : 203.239.175.1 Secondary nameserver name : blue.jic.co.kr Secondary nameserver IP address : 203.239.175.2 2. /etc/named.boot File blue¿¡¼ /etc/named.boot fileÀ»¸¦ ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÑ´Ù. ;named.boot file for the jic.co.kr domain ;on the host www sun octopus directory /etc/domain cache . root.cache primary 0.0.127.in-addr.arpa 0.0.127.in-addr.arpa secondary jic.co.kr 203.239.175.1 jic.co.kr secondary 75.239.203.in-addr.arpa 203.239.175.1 175.239.203.in-addr.arpa "directory"´Â DNS µ¥ÀÌÅÍ ÆÄÀÏÀÌ ÀúÀåµÇ´Â Àå¼ÒÀÌ´Ù. À̵ð·ºÅ丮´Â ¸¸µé¾î ÁÖ¾î¾ßÇÑ´Ù. "cache" Å°¿öµå´Â root DNS ServerÀÇ IP address¿Í À̸§À» in.named daemon¿¡°Ô ¾Ë·Á ÁØ´Ù. /domain/root.ccache´Â prmary nameserver¿¡¼ »ç¿ëÇÏ´ø °Í°ú µ¿ÀÏ ÇÑ °ÍÀÌ´Ù. ÀÌÈÀÏÀº primary nameserver¿¡¼ down ¹Þ´Â´Ù. "primary" Å°¿öµå´Â loopback address domainÀÌ 0.0.127.in-addr.arpa ÆÄÀÏ¿¡ ÀÖ´Ù´Â °ÍÀ» in.nameddaemon¿¡°Ô ¾Ë·ÁÁØ´Ù. ÀÌ°ÍÀº primary nameserver¿¡ ÀÖ´Â °Í°ú µ¿ ÇÑ °ÍÀÌ´Ù. ÀÌÈÀÏÀº primary nameserver¿¡¼ down ¹Þ´Â´Ù. "secondary" Å°¿öµå´Â µÎ ¹ø° Çʵ忡 ÀÖ´Â µµ¸ÞÀο¡ ´ëÇؼ secondary nameserver¶ó´Â °ÍÀ» ¾Ë·ÁÁØ´Ù. ¸¶Áö¸· µÎ¶óÀÎÀÇ ¼¼ ¹ø° Çʵ忡 ÀÖ´Â IP adress´Â primary nameserverÀÇ IP adressÀÌ´Ù. in.named daemonÀº ÀÚµ¿À¸·Î primary nameserver¿¡¼ À̵µ¸ÞÀο¡´ëÇÑ µ¥ÀÌÅ͸¦ ³»·Á¹Þ´Â´Ù. ¸¶Áö¸· ³× ¹ø° Çʵ忡 ¸í½ÃµÈ ÆÄÀÏÀº primary nameserver·ÎºÎÅÍ °¡Á®¿Í¼ ÀÚµ¿À¸·Î »ý¼ºÇÑ´Ù. ÀÌÈÀÏÀº "direstory" Å°¿öµå¿¡ Á¤ÀÇµÈ directory¿¡ »ý¼ºµÈ´Ù. 3. Test /etc/resolv.conf file¿¡ ´ÙÀ½°ú°°À̵î·Ï domain jic.co.kr nameserver 203.239.175.1 nameserver 203.239.175.2 /etc/nsswitch.conf # # /etc/nsswitch.files: # # An example file that could be copied over to /etc/nsswitch.conf; it # does not use any naming service. # # "hosts:" and "services:" in this file are used only if the # /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports. passwd: files group: files hosts: files dns networks: files protocols: files rpc: files ethers: files netmasks: files bootparams: files publickey: files # At present there isn't a 'files' backend for netgroup; the system will # figure it out pretty quickly, and won't use netgroups at all. netgroup: files automount: files aliases: files services: files sendmailvars: files primary nameserver¿¡¼ in.named daemonÀ» kill½ÃŲÈÄ ¿ÜºÎ µµ¸ÞÀÎ ³×ÀÓÀÌ pingÀÌ µÇ´ÂÁö È®ÀÎÇÑ´Ù. ex) sun# ps -ef | grep in.named root 119 1 0 19:22:08 ? 0:00 /usr/sbin/in.named sun# kill -9 119 blue# ping mit.edu mit.edu is alive ´ë»ó O/S : solaris |