/*
- * $Id: dns_internal.cc,v 1.89 2006/05/29 00:15:02 robertc Exp $
+ * $Id: dns_internal.cc,v 1.90 2006/07/24 19:21:26 serassio Exp $
*
* DEBUG: section 78 DNS lookups; interacts with lib/rfc1035.c
* AUTHOR: Duane Wessels
#endif
- if (0 == nns)
- fatal("Could not find any nameservers.\n"
+ if (0 == nns) {
+ debugs(78, 1, "Warning: Could not find any nameservers. Trying to use localhost");
#ifdef _SQUID_WIN32_
- " Please check your TCP-IP settings or /etc/resolv.conf file\n"
+
+ debugs(78, 1, "Please check your TCP-IP settings or /etc/resolv.conf file");
#else
- " Please check your /etc/resolv.conf file\n"
+
+ debugs(78, 1, "Please check your /etc/resolv.conf file");
#endif
- " or use the 'dns_nameservers' option in squid.conf.");
+
+ debugs(78, 1, "or use the 'dns_nameservers' option in squid.conf.");
+ idnsAddNameserver("127.0.0.1");
+ }
if (!init) {
memDataInit(MEM_IDNS_QUERY, "idns_query", sizeof(idns_query), 0);