简体   繁体   中英

change DNS server programatically in C#

我在两个位置location1和location2中都有一个Web服务,现在我的应用程序应该从location1访问该服务,如果它在location1上不可用,那么只有它必须转到location2,我才能根据我的要求使用C#实用地配置dns

On DNS, you can configure duplicate host record to point to different IP to create the load balancing effect, but you cannot detect the "not available status" by using DNS. Even you can configure the DNS record programatically, DNS still take time to refresh the local cache and server cache.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM