diff from Philipp (philipp+openbsd [at] bureaucracy [dot] de), thanks!
ok sthen@
-/* $OpenBSD: dns.c,v 1.91 2023/11/08 08:46:34 op Exp $ */
+/* $OpenBSD: dns.c,v 1.92 2023/11/16 10:23:21 op Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
print_dname(rr.rr.mx.exchange, buf, sizeof(buf));
buf[strlen(buf) - 1] = '\0';
- if (rr.rr.mx.preference == 0 && !strcmp(buf, "")) {
+ if ((rr.rr.mx.preference == 0 && !strcmp(buf, "")) ||
+ !strcmp(buf, "localhost")) {
nullmx = 1;
continue;
}