Pergunta:
Como reorientar usuários a um Engine de busca quando tiverem uma falha DNS?
Contribuído por Vladimir Sousa e por Jeff Richmond, engenheiros de TAC da Cisco.
Ambiente: WSA
Sintomas: Quando os usuários datilografarem dentro uma URL inexistente (não pode ser resolvido DNS) à revelia WSA retornará uma página da notificação similar ao seguinte:
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)
Alguns clientes gostariam de poder reorientar pelo contrário usuários a um Engine de busca. Isto é similar ao que é executado pela busca de Windows Live.
É possível reorientar o pedido de usuários à URL inexistente mudando a página da notificação do padrão a algo similar a:
Para a busca de Windows Live:
<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>
Para Google:
<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>
As etapas para alterar o arquivo HTML DNS_FAIL estão abaixo:
- FTP ao WSA - admin@<WSA_host_name_or_IP> ftp
- Consulte à configuração/eun/en.
- Transfira e edite a página ERR_DNS_FAIL ou crie uma página nova ERR_DNS_FAIL.
- Transfira arquivos pela rede a página editada ERR_DNS_FAIL ao dobrador da configuração/eun/en.
- Após transferir arquivos pela rede, entre na interface CLI. Use então o “uso que EUN feito sob encomenda pagina” a opção; se esta opção é permitida já, use “refrescam o comando das páginas EUN” fazer as páginas personalizadas transferidas arquivos pela rede EUN eficazes. Esta opção estará disponível sob o comando CLI --> advancedproxyconfig > EUN.