From 7492e4b37da054ecd2b619b9e7f55014bc825bc5 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 5 Nov 2015 10:32:29 +0100 Subject: [PATCH] make toysdig work --- pdns/toysdig.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pdns/toysdig.cc b/pdns/toysdig.cc index 0b7d39506..feb11a3a8 100644 --- a/pdns/toysdig.cc +++ b/pdns/toysdig.cc @@ -374,7 +374,7 @@ vState getKeysFor(TCPResolver& tr, const DNSName& zone, keymap_t &keyset) state = Indeterminate; - DNSName qname; + DNSName qname("."); typedef std::multimap dsmap_t; dsmap_t dsmap; keymap_t keymap; @@ -564,6 +564,10 @@ int main(int argc, char** argv) try { reportAllTypes(); + rootDS = "19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5"; + + if(argv[5]) + rootDS = argv[5]; g_anchors.insert(DSRecordContent("19036 8 2 49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5")); if(argc < 4) { cerr<<"Syntax: sdig IP-address port question question-type\n"; -- 2.40.0