tools/ndns-daemon: fix bug that validator cannot fetch certificate

refs #2206

Change-Id: I10c69d95e6a5fd020038211ce419763fd62afcb3
diff --git a/wscript b/wscript
index dd3807e..26f4fc8 100644
--- a/wscript
+++ b/wscript
@@ -98,6 +98,8 @@
         name='validator-sample',
         ANCHORPATH='anchors/root.cert',
         RELATION='is-prefix-of',
+        DEFAULT_CONFIG_PATH="%s/ndns" % bld.env['SYSCONFDIR'],
+        DEFAULT_DATABASE_PATH="%s/ndns" % bld.env['LOCALSTATEDIR'],
         help='the validator configuration of ndns',
     )