Ç×»ó ¿Ã¹Ù¸¥ ÀÛµ¿À» À§ÇØ (Keeping it working).
named°¡ ½ÇÇàµÇµµ·Ï À¯ÁöÇÏ´Â °Í ¿Ü¿¡ Ç×»ó À¯³äÇØ¾ß ÇÏ´Â °ÍÀÌ ÀÖ´Ù.
root.hints
ÆÄÀÏÀ» ÃÖ½ÅÀÇ °ÍÀ¸·Î À¯ÁöÇÏ´Â °ÍÀÌ´Ù. Á¦ÀÏ ½¬¿î ¹æ¹ýÀº dig¸¦
»ç¿ëÇÏ´Â °ÍÀÌ´Ù. ¸ÕÀú ¾Æ¹«·± ¾Æ±Ô¸ÕÆ® ¾øÀÌ dig¸¦ ½ÇÇàÇÑ´Ù.
±×·¯¸é ¹Ù·Î ¼¹ö¿¡ µû¶ó¼ ¾à°£Àº ´Ù¸¥ root.hints¸¦ ¾òÀ» °ÍÀÌ´Ù.
±×·± ´ÙÀ½ dig @rootserver
·Î ³ª¿µÈ ·çÆ® ¼¹ö Áß ÇÑ°÷¿¡ ¿äûÇÑ´Ù.
root.hints
¿Í À¯»çÇÑ ²ûÂïÇÑ °á°ú¸¦ ¾ò°Ô µÉ °ÍÀÌ´Ù.
°á°ú¸¦ ÆÄÀÏ·Î ÀúÀåÇÏ°í(dig @e.root-servers.net . ns >root.hints.new
)
¿¹ÀüÀÇ root.hints¿Í ´ëü½ÃŲ´Ù.
ij½¬ ÆÄÀÏÀ» ´ëüÇÑ ÈÄ¿¡´Â ¹Ýµå½Ã named¸¦ Àç½ÃÀÛÇϵµ·Ï ÇÏÀÚ.
Al Longyear¾¾°¡ root.hints
¸¦ ÀÚµ¿À¸·Î °»½ÅÇÒ ¼ö ÀÖ´Â ¾Æ·¡ ½ºÅ©¸³Æ®¸¦
º¸³» ÁÖ¾ú´Ù. crontab¿¡ ³Ö¾î¼ ÇÑ´Þ¿¡ Çѹø²Ã·Î ½ÇÇàµÇµµ·Ï Çصθé Àؾ µÈ´Ù.
ÀÌ ½ºÅ©¸³Æ®¿¡¼´Â ¿©·¯ºÐÀÇ ¸ÞÀÏÀÌ ÀÛµ¿ÇÏ°í ÀÖ°í ¸ÞÀÏ ¾Ë¸®¾Æ½º `hostmaster'°¡
Á¤ÀǵǾî ÀÖ´Ù°í °¡Á¤ÇÑ´Ù. ¿©·¯ºÐ¿¡°Ô ¸Â°Ô °íÃÄ¾ß ÇÑ´Ù.
#!/bin/sh # # Update the nameserver cache information file once per month. # This is run automatically by a cron entry. # # Original by Al Longyear # Updated for bind 8 by Nicolai Langfeldt # SERVFAIL problem discovered by David A. Ranch # ( echo "To: hostmaster <hostmaster>" echo "From: system <root>" echo "Subject: Automatic update of the named.conf file" echo export PATH=/sbin:/usr/sbin:/bin:/usr/bin: cd /var/named dig @rs.internic.net . ns >root.hints.new case `cat root.hints.new` in *SERVFAIL*) echo "The named.conf file update has FAILED." echo "This is the error that DIG reported:" echo cat root.hints.new exit 0 esac echo "The named.conf file has been updated to contain the following information:" echo cat root.hints.new chown root.root root.hints.new chmod 444 root.hints.new rm -f root.hints.old mv root.hints root.hints.old mv root.hints.new root.hints ndc restart echo echo "The nameserver has been restarted to ensure that the update is complete." echo "The previous root.hints file is now called /var/named/root.hints.old." ) 2>&1 | /usr/lib/sendmail -t exit 0
¿©·¯ºÐ Áß ¸î¸îÀº ftp·Î Internic¿¡¼ root.hints ÆÄÀÏÀ» °¡Á®¿Ã ¼ö ÀÖ´Ù°í ²¿Áý¾î ¸»ÇÒÁöµµ ¸ð¸¥´Ù. ftp·Î root.hints¸¦ °»½Å ÇÏÁö ¸»¶ó. À§ÀÇ ¹æ¹ýÀÌ ³×Æ®¿÷¿¡ ´õ¿í Ä£±ÙÇÏ´Ù.