Commit f8aa2605 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(dns_resolution): Don't log errors if the lookup of localhost fails

	due to "nxdomain" or "inconsistent".
parent 5ab42a44
/*
* $Id: connections.c,v 0.118 2003/08/06 22:30:35 ceder Exp $
* $Id: connections.c,v 0.119 2003/08/07 19:38:15 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -736,7 +736,12 @@ dns_resolution(struct isc_scb *scb,
if (hostname == NULL)
hostname = s_crea_c_str(scb->remote);
kom_log("Error looking up %s: %s\n", hostname, adns_strerror(errcode));
/* Misconfigurations of localhost are common and harmless.
Don't bother logging them, since that makes the test cases fail. */
if ((errcode != adns_s_inconsistent && errcode != adns_s_nxdomain)
|| strcmp(hostname, "127.0.0.1") != 0)
kom_log("Error looking up %s: %s\n",
hostname, adns_strerror(errcode));
break;
case isc_resolve_aborted:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment