DNS resolution is best effort; if at this time IP addresses for tickers
authorderaadt <deraadt@openbsd.org>
Wed, 21 Feb 2024 03:31:28 +0000 (03:31 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 21 Feb 2024 03:31:28 +0000 (03:31 +0000)
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

index a0984e9..178d51e 100644 (file)
@@ -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 <henning@openbsd.org>
@@ -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");