Reverse reverse lookup flag definition. Disable by default. - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log
Files
Refs
README
LICENSE
---
commit 72253bb02d112a5287ce7b72af7e599da5436236
parent ccbe2e7bf5613a77a9e1f2e29ff037c08755cdb0
Author: Christoph Lohmann <20h@r-36.net>
Date:   Mon, 21 Aug 2023 10:50:33 +0200

Reverse reverse lookup flag definition. Disable by default.

In the past we used geomyidae to find out about ISPs not implementing
proper reverse lookup. So we disable this by default. We have no way to
control the DNS lookup on all installations, admins have to do it on
their own.

Diffstat:
  M geomyidae.8                         |       2 +-
  M main.c                              |       4 ++--

2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/geomyidae.8 b/geomyidae.8
@@ -109,7 +109,7 @@ the standard output.
 Disable execution of any CGI or DCGI script.
 .
 .It Fl n
-Don't perform reverse lookups.
+Perform reverse lookups.
 .
 .It Fl s
 Log using syslog for logging.
diff --git a/main.c b/main.c
@@ -51,7 +51,7 @@ int glfd = -1;
 int dosyslog = 0;
 int logpriority = LOG_INFO|LOG_DAEMON;
 int loglvl = 47;
-int revlookup = 1;
+int revlookup = 0;
 char *logfile = NULL;
 
 int *listfds = NULL;
@@ -664,7 +664,7 @@ main(int argc, char *argv[])
                 logfile = EARGF(usage());
                 break;
         case 'n':
-                revlookup = 0;
+                revlookup = 1;
                 break;
         case 'o':
                 sport = EARGF(usage());