打開相應DNS服務器的“屬性”(點擊該服務器,單擊右鍵選取),在“高級”選項卡的“服務器選項”中,選中“啓用循環”(Round Robin)複選框。此步相當於在註冊表記錄HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/DNS/Parameters中添加一個雙字節制值(dword值)RoundRobin,值爲1。
打開正向搜索區域的相應區域(如test.com),新建主機添加主機 (A) 資源記錄,記錄如下:
www IN A 192.1.1.1
www IN A 192.1.1.2
www IN A 192.1.1.3
在這裏可以看到的區別是在NT下一個主機名對應多個IP地址記錄,但在unix下,是先添加多個不同的主機名分別對應個自的IP地址,然後再把這些主機賦同一個別名(CNAME)來實現的。
在此需要注意的是,NT下本地子網優先級會取代多宿主名稱的循環複用,所以在測試時,如果做測試用的客戶機IP地址與主機資源記錄的IP在同一有類掩碼範圍內,就需要清除在“高級”選項卡“服務器選項”中的“啓用netmask排序”。
刷新DNS配置的命令: ipconfig/flushdns
ipconfig help
/? Display this help message
/all Display full configuration information.
/release Release the IP address for the specified adapter.
/renew Renew the IP address for the specified adapter.
/flushdns Purges the DNS Resolver cache.
/registerdns Refreshes all DHCP leases and re-registers DNS names
/displaydns Display the contents of the DNS Resolver Cache.
/showclassid Displays all the dhcp class IDs allowed for adapter.
/setclassid Modifies the dhcp class id.