diff --git a/doc/Changelog b/doc/Changelog index a9d4b8efc..52ed1ef6f 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ - added configure check for ldns 1.4.0 (using its compat funcs). - neater comments in worker.h. - removed doc/plan and updated doc/TODO. + - silenced EHOSTDOWN (verbosity 2 or higher to see it). 12 November 2008: Wouter - add unbound-control manpage to makedist replace list. diff --git a/util/netevent.c b/util/netevent.c index 8fc9a576d..390a00ec6 100644 --- a/util/netevent.c +++ b/util/netevent.c @@ -800,6 +800,10 @@ comm_point_tcp_handle_write(int fd, struct comm_point* c) #ifdef EHOSTUNREACH else if(error == EHOSTUNREACH && verbosity < 2) return 0; /* silence 'no route to host' */ +#endif +#ifdef EHOSTDOWN + else if(error == EHOSTDOWN && verbosity < 2) + return 0; /* silence 'host is down' */ #endif else if(error != 0) { log_err("tcp connect: %s", strerror(error));