Round robin DNS is a simple way to load balance your servers. 循環賽的DNS是一個簡單的方法, 負載平衡,您的服務器。 You can use it balance the load between multiple web / ftp or other servers.你可以使用它的平衡負載之間的多個Web / FTP或其他服務器。 Each server has its own IP address.每個服務器有其自己的IP地址。 In round robin mode the DNS serves one of the available IP addresses in random order to the requester.在循環賽模式的DNS服務的其中一種可用的IP地址,隨機,以請求。 The simplest way to implement round robin DNS is with A records in your zone file.最簡單的方法,實施循環賽DNS是一個紀錄,在您的區域文件。 For example my taragana.com.hosts file (zone file for taragana.com zone which is used by Bind name server) currently has the following entries:舉例來說,我taragana.com.hosts文件(區文件taragana.com區,這是用綁定的名稱服務器)目前有以下項目:

 taragana.com. taragana.com 。 IN A            72.36.134.170                                            IN A            72.36.134.130在一個72.36.134.170在一個72.36.134.130 

This ensures that any request to taragana.com is served alternatively by one of the following IP addresses: 72.36.134.170 and 72.36.134.130.這將確保任何要求taragana.com是服務或者是由以下原因之一IP地址: 72.36.134.170和72.36.134.130 。

Note: You can normally find your zone file in /var/named or /var/named/chroot/var/named directory.注意:您可以找到您通常區域文件在/ var /命名或/ var /命名/ chroot來的/ var /命名的目錄。
You can use this simple technique to load balance between multiple web servers or ftp servers.您可以使用這個簡單的技術,負載平衡之間的多個Web服務器或FTP伺服器。 You can verify it by pinging taragana.com and you will, unless you have a caching nameserver in between, alternately get both the IP addresses.您可以驗證它的偵測taragana.com你會,除非你有一個緩存域名服務器在此期間,雙方交替獲得的IP地址。

Such load balancing is ideally suited for stateless web services like serving images and files or web / blog pages.例如負載平衡,是適合無國籍Web服務一樣,服務的形象和檔案或網頁/博客的頁面。
However even for statefull services like web based applications this works because the browser caches the IP address and goes back to the same server for processing subsequent requests.不過,即使statefull的服務,如基於網絡的應用,這是因為瀏覽器緩存的IP地址和可追溯到同一服務器進行處理後續請求。

Note: In my case however they both point to the same server currently.注意:在我的情況,但他們都指向同一個服務器目前。 So what’s the point?因此,什麼樣的點呢? I am actually transitioning the IP addresses from 130 to 170.我其實過渡的IP地址由130至170 。 So this is the intermediate step I decided to take and then on Saturday I will remove the 130 entries from my DNS server.因此,這是中間步驟,我決定採取,然後就週六,我會刪除130份參賽作品我的DNS伺服器。

BTW: Round robin DNS by itself doesn’t provide a failover support as the DNS doesn’t have any knowledge about the servers it is pointing to.的BTW :循環賽的DNS本身並不提供一個故障支持的DNS沒有任何知識的服務器,這是指向。 However you can write scripts to monitor the server and request the DNS to take down or bring up one or more servers from its list.不過,你也可以撰寫腳本,以監察,並要求服務器的DNS採取降低或帶出一個或多個服務器將其從清單中。