diff --git a/CHANGES b/CHANGES index 9f44c824d7..279728f023 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5337. [func] 'named -V' now reports maxminddb and protobuf-c + versions. [GL !2686] + --- 9.15.7 released --- 5336. [bug] The TCP high-water statistic could report an diff --git a/bin/named/main.c b/bin/named/main.c index f1c14c511d..9d8e1aeedc 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -59,6 +59,10 @@ #include #endif /* HAVE_JSON_C */ +#ifdef HAVE_GEOIP2 +#include +#endif + /* * Defining NAMED_MAIN provides storage declarations (rather than extern) * for variables in named/globals.h. @@ -548,6 +552,17 @@ OPENSSL_VERSION_NUMBER >= 0x10100000L /* 1.1.0 or higher */ ZLIB_VERSION); printf("linked to zlib version: %s\n", zlibVersion()); +#endif +#if defined(HAVE_GEOIP2) + /* Unfortunately, no version define on link time */ + printf("linked to maxminddb version: %s\n", + MMDB_lib_version()); +#endif +#if defined(HAVE_DNSTAP) + printf("compiled with protobuf-c version: %s\n", + PROTOBUF_C_VERSION); + printf("linked to protobuf-c version: %s\n", + protobuf_c_version()); #endif printf("threads support is enabled\n\n");