diff --git a/smallapp/unbound-host.c b/smallapp/unbound-host.c index 095396749..ed52a551f 100644 --- a/smallapp/unbound-host.c +++ b/smallapp/unbound-host.c @@ -61,6 +61,9 @@ #endif #include "libunbound/unbound.h" #include +#ifdef HAVE_NSS +#include +#endif /** verbosity for unbound-host app */ static int verb = 0; @@ -509,6 +512,12 @@ int main(int argc, char* argv[]) if(argc != 1) usage(); +#ifdef HAVE_NSS + if(NSS_NoDB_Init(".") != SECSuccess) { + fprintf(stderr, "could not init NSS\n"); + return 1; + } +#endif lookup(ctx, argv[0], qtype, qclass); return 0; }