From 9758cbeffcfbfeda807f577c7a50d0795e4eb11c Mon Sep 17 00:00:00 2001 From: Michael Tokarev Date: Fri, 1 Mar 2024 16:16:20 +0300 Subject: [PATCH] lower dns lookup mismatch messages Forwarded: https://gitlab.com/samba-team/samba/-/merge_requests/3872 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 --- source3/lib/util_sock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); } } -- 2.30.2