From 150da408cdd9c3b3fb4a57e577bc82b7c8251539 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 21 Feb 2024 03:31:28 +0000 Subject: [PATCH] DNS resolution is best effort; if at this time IP addresses for tickers cannot be resolved, don't spam syslog like crazy. Change the "DNS lookup tmpfail" message into a log_debug() ok millert --- usr.sbin/ntpd/ntp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c index a0984e94346..178d51ec343 100644 --- a/usr.sbin/ntpd/ntp.c +++ b/usr.sbin/ntpd/ntp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntp.c,v 1.173 2024/02/08 00:15:53 jsg Exp $ */ +/* $OpenBSD: ntp.c,v 1.174 2024/02/21 03:31:28 deraadt Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -596,7 +596,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"); + log_debug("DNS lookup tempfail"); peer->state = STATE_DNS_TEMPFAIL; if (conf->tmpfail++ == TRIES_AUTO_DNSFAIL) priv_settime(0, "of dns failures"); -- 2.20.1