基于DNS的策略,用于显示一个不错的“当前离线”服务器关闭时的页面 [英] DNS-based strategies for showing a nice "Currently Offline" page when the server is down

查看:219
本文介绍了基于DNS的策略,用于显示一个不错的“当前离线”服务器关闭时的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果服务器关闭(我的意思是,完整的服务器关闭,请求无法到达IIS),我该如何使该站点自动显示一个不错的当前离线页面。

How can I make that a site automagically show a nice "Currently Offline" page when the server is down (I mean, the full server is down and the request can't reach IIS)

手动更改DNS不是一个选项。

Changing the DNS manually is not an option.

编辑:我正在寻找某种DNS技巧重定向到其他服务器,以防主服务器关闭。我可以对DNS进行永久更改,但不会因为服务器关闭而手动更改。

I'm looking to some kind of DNS trick to redirect to other server in case the main server is down. I can make permanent changes to the DNS, but not manually as the server goes down.

推荐答案

我已经使用正常运行时间服务 DNSMadeEasy 获得巨大成功。实际上,他们将DNS TTL设置为非常低的数字(5分钟)。他们负责ping您的服务器。

I have used the uptime services at DNSMadeEasy to great success. In effect, they set the DNS TTL to a very low number (5 minutes). They take care of pinging your server.

如果中断,DNS查询将被引导到辅助IP。在DNS需求有限的小商店中,您可以选择热备用。我已经使用了3年,没有一分钟的停机时间。

In the event of outage, DNS queries get directed to the secondary IP. An excellent option for a "warm spare" in small shops with limited DNS requirements. I've used them for 3 years with not a single minute of downtime.

编辑:

这允许地理上冗余的故障切换,NLB解决方案不提供解决方案。如果网络连接断开,则标准NLB配置中的两台服务器将无法访问。

This allows for geographically redundant failover, which the NLB solution proposed does not address. If the network connection is down, both servers in a standard NLB configuration will be unreachable.

这篇关于基于DNS的策略,用于显示一个不错的“当前离线”服务器关闭时的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆