aboutsummaryrefslogtreecommitdiff
path: root/smallapp/unbound-host.c
diff options
context:
space:
mode:
Diffstat (limited to 'smallapp/unbound-host.c')
-rw-r--r--smallapp/unbound-host.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/smallapp/unbound-host.c b/smallapp/unbound-host.c
index 095396749ff1..715aa4a6516b 100644
--- a/smallapp/unbound-host.c
+++ b/smallapp/unbound-host.c
@@ -61,6 +61,10 @@
#endif
#include "libunbound/unbound.h"
#include <ldns/ldns.h>
+#ifdef HAVE_NSS
+/* nss3 */
+#include "nss.h"
+#endif
/** verbosity for unbound-host app */
static int verb = 0;
@@ -509,6 +513,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;
}