From: Michael Tokarev Date: Fri, 1 Mar 2024 13:16:20 +0000 (+0300) Subject: lower dns lookup mismatch messages X-Git-Tag: archive/raspbian/2%4.20.1+dfsg-4+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2dab1a1fa6bae9eb5a9b0ea593ca1e6d80adba61;p=samba.git lower dns lookup mismatch messages There's just too much useless noise in the logs, especially when the PTR record just doesn't exist. Signed-off-by: Michael Tokarev Gbp-Pq: Name lower-dns-lookup-mismatch-messages.patch --- diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index 5ff875c2..b9237c37 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -709,7 +709,7 @@ static bool matchname(const char *remotehost, if (ailist->ai_canonname == NULL || (!strequal(remotehost, ailist->ai_canonname) && !strequal(remotehost, "localhost"))) { - DEBUG(0,("matchname: host name/name mismatch: %s != %s\n", + DEBUG(5,("matchname: host name/name mismatch: %s != %s\n", remotehost, ailist->ai_canonname ? ailist->ai_canonname : "(NULL)")); @@ -735,7 +735,7 @@ static bool matchname(const char *remotehost, * it, but that could be dangerous, too. */ - DEBUG(0,("matchname: host name/address mismatch: %s != %s\n", + DEBUG(5,("matchname: host name/address mismatch: %s != %s\n", print_sockaddr_len(addr_buf, sizeof(addr_buf), pss, @@ -891,7 +891,7 @@ int get_remote_hostname(const struct tsocket_address *remote_address, TALLOC_FREE(p); } else { if (!matchname(name_buf, (struct sockaddr *)&ss, len)) { - DEBUG(0,("matchname failed on %s\n", name_buf)); + DEBUG(5,("matchname failed on %s\n", name_buf)); strlcpy(name_buf, "UNKNOWN", sizeof(name_buf)); } }