[譯]管理Windows 2000 Pro中的DNS用戶端緩衝

來源:互聯網
上載者:User

http://techrepublic.com.com/5100-10877_11-6029680.html?tag=nl.e116

Manage the DNS client cache in Windows 2000 Pro
管理Windows 2000 Pro中的DNS用戶端緩衝

by  Jim Boyce
作者:purple endurer
Keywords:  Windows 2000 | Microsoft Windows | Domain names
關鍵字:Windows 2000 | Microsoft Windows | 網域名稱

 

Takeaway:
If a lookup fails for a host because the target domain's DNS server is down, then subsequent attempts to look up the host will also fail because the failed results are cached. Learn two ways to overcome this problem.
概述:
如果對一個主機的查詢因為負責其網域名稱解析的DNS伺服器關閉而失敗,那麼後續的查詢該主機的嘗試也將因為(先前的)失敗結果被緩衝而不成功。讓我們學習克服這個問題的兩種方法。

 

DNS enables fully qualified host names like www.techrepublic.com to be resolved to their target IP addresses. Every time you visit a Web site, the DNS client software built into Windows 2000 Professional performs a DNS lookup of the specified host name to obtain the IP address of the target server.
DNS能使www.techrepublic.com這樣的完全合法的主機名稱被解析為目標IP地址。您每次訪問一個網站,Windows 2000 Professional內建的DNS用戶端軟體執行一次指特主機名稱的查詢以獲得目標伺服器的IP地址。

The DNS client caches the results of each name lookup to speed up subsequent requests for the address. The default cache timeout is 30 minutes. If a lookup result is longer than 30 minutes, Windows performs an external lookup of the host and refreshes the cached copy.
DNS用戶端緩衝查詢的每一個名字,用以加速後續的地址請求。預設緩衝時限為30分鐘。如果一個查詢結果長於30分鐘,Windows執行一個主機擴充查詢並重新整理緩衝拷貝。

Although caching can improve name resolution performance, it can also affect resolution in a negative way. In addition to caching positive results, Windows also caches negative results. So, if a lookup fails for a host because the target domain's DNS server is down, then subsequent attempts to look up the host will also fail because the failed results are cached. You can overcome this problem in one of two ways: flush the DNS cache and try again when the server comes back on line, or change the cache timeout.
儘管緩衝能改善名字解析效能,但它也能負面影響解析。除了緩衝有效結果之外,Windows也緩衝不良結果。所以,如果對一個主機的查詢因為負責其網域名稱解析的DNS伺服器關閉而失敗,那麼後續的查詢該主機的嘗試也將因為(先前的)失敗結果被緩衝而不成功。您可以用下列兩種方法之一克服這個問題:重新整理DNS緩衝並在伺服器重新上線時重試,或者修改緩衝時限。

To change cache timeout, open the Registry Editor and add the DWORD value
要修改緩衝時限,開啟登錄編輯程式並增加DWORD型值:

HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet Settings/DnsCacheTimeout.

Set the value of DnsCacheTimeout to the number of seconds you want entries to be cached.
按你所想,以秒為單位設定DnsCacheTimeout值。

To flush the DNS cache altogether, use the following command at a console prompt:
要重新整理DNS緩衝,在命令控制台使用下列命令:

ipconfig /flushdns

Note: Editing the registry is risky, so be sure you have a verified backup before saving any changes.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.