ºìÁªLinuxÃÅ»§
Linux°ïÖú

DNS Cache µÄһЩС¼¼ÇÉ»ã×Ü

·¢²¼Ê±¼ä:2006-03-30 00:08:37À´Ô´:ºìÁª×÷Õß:artiomgy
×î½üÓв»ÉÙ¹ØÓÚDNS Cache µÄÌû×Ó£¬ÈÃÎÒѧµ½Á˲»ÉÙ¼¼ÇÉ¡£»ã×Üһϡ£

Q: ÈçºÎ²é¿´ BIND DNS Server µÄ Cache :

A: ÔÚ bind 9 ÖУ¬¿ÉÒÔʹÓà rndc -dumpdb ÃüÁîÀ´²é¿´ DNS Cache£¬µ±È»ÄãµÄ rndc ÒªÏÈÅäÖúá£Õâ¸öÃüÁî»áÔÚ /var/named £¨Õâ¸öĿ¼ÊÇÔÚ named.conf ÎļþÖÐÖ¸¶¨µÄ£©Ä¿Â¼ÖÐÉú³É named_dump.db Îļþ¡£

ÔÚ bind 8 Ï£¬¿ÉÒÔÊÔÊÔÓà kill -INT named_pid ¡£

Q: DNS Cache µÄʱ¼äÈçºÎÉèÖÃ:

A: ÔÚ bind 9 ÖУ¬Ê¹Óà TTL ²ÎÊýÀ´ÉèÖà DNS ĬÈϵĻº´æʱ¼ä£¬µ«Òª¼ÇסÕâ¸öÊÇÄã½âÎöµÄÓòÃûÔÚ±ðÈ赀 DNS ÖеĻº´æʱ¼ä¡£

Q: ÔÚ¿Í»§¶ËÈçºÎÇå¿Õ DNS Cache:

A: ÔÚ Unix Ï£¬DNS ¿Í»§¶ËÖ»ÊǼ¸¸öÀý³Ì£¬¸ºÔðת·¢ºÍ½ÓÊܲéѯµÄ¹¦ÄÜ£¬²¢²»»º´æ¡£

ÔÚ Windows 2000 & XP ÏÂ: ipconfig /flushdns can clear the cache;
ipconfig /displaydns can display the dns cache.

windows Ï嵀 dns cache ÊÇÓÉ dns client ºǫ́½ø³Ì¿ØÖƵģ¬Äã¿ÉÒÔÔÚ¿ØÖÆÃæ°å -> ·þÎñÖн«Æä¹Ø±Õ£¬ÕâÑù windows ¾Í²»»á½øÐÐ dns »º´æ£¬Ã¿´Î¶¼½«Ö±½Ó²éѯ dns server ¡£

Q: ÔÚ DNS ·þÎñÆ÷¶ËÈçºÎÇå¿Õ DNS Cache:

A: ×î¼òµ¥µÄ·½·¨¾ÍÊÇÖØÐÂÆô¶¯ named ½ø³Ì£»µ±È»Ò²Óв»ÓÃÖØÆôµÄ·½·¨: rndc flush
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ