Objective:
What is DNS polling?
A domain name for multiple IP A records resolution, the DNS server will resolve the request in the order of a records, one by one assigned to a different IP, so that the simple load balancing the benefits of DNS polling: 0 Cost: Just binding a few a records on the DNS server, domain registrars are generally Provides free parsing services, simple deployment: Device amplification in a network topology, and then add records to the DNS server. Disadvantages of DNS Polling: 1, low reliability assuming that a domain name DNS polls multiple servers, if one of the servers fails, then all requests to access the server will not respond, and this is something that no one would want to see. Even if the server's IP is removed from the DNS, but on the Internet, the regional telecommunications, netcom and other broadband providers to store a large number of DNS in the cache in order to save access time, the full effect of DNS records takes several hours, or even longer. Therefore, although DNS polling solves the problem of load balancing to some extent, it has the disadvantage of low reliability. 2, load distribution is not uniform DNS load balancing uses a simple polling algorithm, can not distinguish between server differences, can not reflect the current running state of the server, can not be a better performance of the server multi-allocation requests, and even the customer request to focus on a server situation. The DNS server is organized in a hierarchical structure, and the local DNS server caches the resolved domain name-to-IP-address mappings, which causes users who use the DNS server to access the same Web server over a period of time, resulting in uneven load between Web servers. Additionally, the user's local computer caches the resolved domain name-to-IP-address mappings. When multiple user computers cache a domain name-to-IP-address mapping, and these users continue to access the Web page under that domain name, this can also result in uneven load distribution between different Web servers. The possible consequences of a non-uniform load are the low load on some servers, the high load on the other servers, the slow processing of servers, the small number of requests allocated by the server with high configuration, and the many requests allocated by the low-profile servers.
Lab Environment:
2 Web server systems Windows Server The IP is: 192.168.5.55 and 192.168.5.150
One DNS server system wind server ip:192.168.5.141
A single client ip:192.168.5.100
Lab Environment Configuration:
2 Web servers The process and steps to build the Web are no longer listed.
Make the following network configuration for each of the two Web servers to be interoperable:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/E7/wKiom1TAWHbwDaAmAAGC15ORdXU263.jpg "title=" 1.jpg " alt= "Wkiom1tawhbwdaamaagc15ordxu263.jpg"/>650) this.width=650; src= http://s3.51cto.com/wyfs02/M01/58/E7/ Wkiom1tawb_zzpayaagfsd3w0i0088.jpg "title=" 2.jpg "alt=" Wkiom1tawb_zzpayaagfsd3w0i0088.jpg "/>
Build a DNS server to test the polling domain name as www.test.com
{1. Build DNS: Double-click Server Manager to select Add roles
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/E5/wKioL1TAY8_hn_ScAAIDyjgT5r8143.jpg "title=" 3.jpg " alt= "Wkiol1tay8_hn_scaaidyjgt5r8143.jpg"/>
Then click Next.
To adjust the configuration DNS server steps are as follows: 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M00/58/E7/ Wkiom1taytzctyrqaaiswxkznqe133.jpg "title=" 11.jpg "alt=" Wkiom1taytzctyrqaaiswxkznqe133.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/E7/wKiom1TAYySzOpxAAAIYEEpv9d4122.jpg "style=" float: none; "title=" 4.jpg "alt=" Wkiom1tayyszopxaaaiyeepv9d4122.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/E5/wKioL1TAY_vyS5JsAAHMH8HpGbE112.jpg "style=" float: none; "title=" 5.jpg "alt=" Wkiol1tay_vys5jsaahmh8hpgbe112.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/E7/wKiom1TAYyTQ0ySjAAEohpTXVVo767.jpg "style=" float: none; "title=" 6.jpg "alt=" Wkiom1tayytq0ysjaaeohptxvvo767.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/E7/wKiom1TAYyTCDdvKAAD4fwPpI04628.jpg "style=" float: none; "title=" 7.jpg "alt=" Wkiom1tayytcddvkaad4fwppi04628.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/E5/wKioL1TAY_vjWcbdAAFHRNx-We8702.jpg "style=" float: none; "title=" 8.jpg "alt=" Wkiol1tay_vjwcbdaafhrnx-we8702.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/E7/wKiom1TAYyWB9ozqAAGWAxBqagg679.jpg "style=" float: none; "title=" 9.jpg "alt=" Wkiom1tayywb9ozqaagwaxbqagg679.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/E5/wKioL1TAY_uRbVKUAAFoITG90r4309.jpg "style=" float: none; "title=" 10.jpg "alt=" Wkiol1tay_urbvkuaafoitg90r4309.jpg "/>
The final configuration is displayed successfully such as:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/E8/wKiom1TAZiyzHjOyAAFS0jTb-Zg567.jpg "title=" 12.jpg "alt=" wkiom1taziyzhjoyaafs0jtb-zg567.jpg "/> Configure two A records pointing to the www.test.com domain name respectively to 2 Web servers such as:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/E8/wKiom1TAZlTTe640AAHQeSWbz6U813.jpg "title=" 13.jpg "alt=" Wkiom1tazltte640aahqeswbz6u813.jpg "/>
To test DNS polling:
On the test machine access www.test.com such as: (in 192.168.5.55 Web page content display www.test.com 192.168.5.55, The content displayed in the 192.168.5.150 Web page is www.test.com 192.168.5.100)
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/E5/wKioL1TAaxGRCUXHAACl_92VfsM389.jpg "title=" 16.jpg "alt=" Wkiol1taaxgrcuxhaacl_92vfsm389.jpg "/>
To view DNS records:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/E8/wKiom1TAb6uyY_AZAADk6nUk4ew541.jpg "title=" 20.jpg "alt=" Wkiom1tab6uyy_azaadk6nuk4ew541.jpg "/>
The nslookup directive can test if the DNS polling configuration is correct, such as: www.test.com corresponds to exactly the specified 2 Web
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/E8/wKiom1TAb7rQLCxGAAF43wLtIqU728.jpg "title=" 21.jpg "alt=" Wkiom1tab7rqlcxgaaf43wltiqu728.jpg "/>
After emptying the browser and DNS records, the re-access is positioned from 192.168.5.55 to 192.168.5.150:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/E6/wKioL1TAcSPSRf-qAAAbZt-qXAQ889.jpg "title=" 23.jpg "alt=" Wkiol1tacspsrf-qaaabzt-qxaq889.jpg "/>
Configure DNS polling for a Windows environment (Simple load Balancing)