From b233898e511784b6932462ea86a1d9cac9d1b3de Mon Sep 17 00:00:00 2001 From: tedu <> Date: Mon, 7 Jan 2019 20:33:40 +0000 Subject: [PATCH] log dns failures, even if temporary. ok benno --- src/usr.sbin/ntpd/ntp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index f48bd3ce..9893d9e2 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.148 2018/07/19 10:20:09 sthen Exp $ */ +/* $OpenBSD: ntp.c,v 1.149 2019/01/07 20:33:40 tedu Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -506,6 +506,7 @@ ntp_dispatch_imsg_dns(void) dlen = imsg.hdr.len - IMSG_HEADER_SIZE; if (dlen == 0) { /* no data -> temp error */ + log_warnx("DNS lookup tempfail"); peer->state = STATE_DNS_TEMPFAIL; break; }