]> granicus.if.org Git - pdns/commitdiff
webserver: make unsigned zones work with dnssec=on
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 28 Jan 2014 09:10:56 +0000 (10:10 +0100)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Tue, 28 Jan 2014 09:10:56 +0000 (10:10 +0100)
pdns/ws.cc

index b52eae4232d2f7fabce59ae6e39a2c06718395a7..746d633bf35d36bfc3aab4cb2b1dedac904962ec 100644 (file)
@@ -523,7 +523,7 @@ static void apiServerZones(HttpRequest* req, HttpResponse* resp) {
       ).str();
     rr.qtype = "SOA";
     rr.domain_id = di.id;
-    rr.auth = 0;
+    rr.auth = 1;
     rr.ttl = ::arg().asNum( "default-ttl" );
     rr.priority = 0;
     rrset.push_back(rr);
@@ -745,7 +745,7 @@ void StatWebServer::jsonstat(HttpRequest* req, HttpResponse* resp)
         rr.content=record["content"].GetString();
         rr.qtype=record["type"].GetString();
         rr.domain_id = sd.domain_id;
-        rr.auth=0;
+        rr.auth=1;
         rr.ttl=intFromJson(record, "ttl");
         rr.priority=intFromJson(record, "priority");