diff --git a/CHANGES b/CHANGES index 9a7ee65481..ace40d7a0f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5337. [func] 'named -V' now reports maxminddb and protobuf-c + versions. [GL !2686] + --- 9.11.14 released --- 5330. [bug] 'configure --without-python' was ineffective if diff --git a/bin/named/main.c b/bin/named/main.c index 1827ac4b32..c9fc3cc351 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -57,6 +57,9 @@ #include #endif +#ifdef HAVE_GEOIP2 +#include +#endif /* * Defining NS_MAIN provides storage declarations (rather than extern) @@ -493,6 +496,17 @@ printversion(bool verbose) { printf("compiled with zlib version: %s\n", 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 #ifdef ISC_PLATFORM_USETHREADS printf("threads support is enabled\n"); #else