Warn about non-local queries once only for UDP.
diff --git a/src/forward.c b/src/forward.c
index b396aa4..c59777e 100644
--- a/src/forward.c
+++ b/src/forward.c
@@ -1107,7 +1107,12 @@
 	}
       if (!addr)
 	{
-	  my_syslog(LOG_WARNING, _("Ignoring query from non-local network"));
+	  static int warned = 0;
+	  if (!warned)
+	    {
+	      my_syslog(LOG_WARNING, _("Ignoring query from non-local network"));
+	      warned = 1;
+	    }
 	  return;
 	}
     }