问题:
如何重定向用户到搜索引擎,当他们有一个DNS故障?
贡献用弗拉基米尔Sousa和杰夫里士满, Cisco TAC工程师。
环境:WSA
症状:当用户类型不存在的URL (可溶解不是的DNS)默认情况下WSA将返回通知页类似于以下:
This Page Cannot Be Displayed
------------------------------------------------------------------------------------------------
The host name resolution (DNS lookup) for this host name ( temple.edu ) has failed. The Internet
address may be misspelled or obsolete, the host ( temple.edu ) may be temporarily unavailable,
or the DNS server may be unresponsive.
Please check the spelling of the Internet address entered. If it is correct, try this request later.
If you have questions, or if this condition persists, please contact your corporate network
administrator and provide the codes shown below.
------------------------------------------------------------------------------------------------
Notification codes: (1, DNS_FAIL, temple.edu)
一些用户希望能重定向用户到搜索引擎。这类似于什么由Windows生活搜索执行。
重定向用户请求到不存在的URL是可能的通过更改默认通知页到事类似于:
Windows生活搜索:
<html>
<head>
<title> Notification Page </title>
<meta name="author" content="Cisco systems">
<meta name="description" content="Notification Page">
<meta http-equiv="refresh" content="0;url=http://search.live.com/results.aspx?FORM=DNSAS&q=%H">
</head>
<body>
<p>
</body>
</html>
谷歌:
<html>
<head>
<title> Notification Page </title>
<meta name="author" content="Cisco systems">
<meta name="description" content="Notification Page">
<meta http-equiv="refresh" content="0;url=http://www.google.com/search?hl=en&q=%H">
</head>
<body>
<p>
</body>
</html>
修改DNS_FAIL HTML文件的步骤如下:
- 对WSA的FTP - ftp admin@<WSA_host_name_or_IP>
- 访问对配置/eun/en。
- 下载并且编辑ERR_DNS_FAIL页或创建新的ERR_DNS_FAIL页。
- 加载编辑的ERR_DNS_FAIL页到配置/eun/en文件夹。
- 在加载以后,请登陆到CLI接口。然后请使用“使用自定义EUN页”选项;如果此选项已经是启用的,请使用“刷新EUN页”命令使被加载的定制的EUN页有效。此选项将是可用的在CLI命令下--> advancedproxyconfig > EUN。