Skip to content

Commit

Permalink
Transfer zone from IANA roots too
Browse files Browse the repository at this point in the history
  • Loading branch information
shadrick committed Nov 15, 2017
1 parent b15f606 commit fc74a13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion etc/conf.d/recursor.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
servertype="recursor"

opennic=true
# opennic=true

[domaains]
[domains.nameinspector]
Expand Down
5 changes: 2 additions & 3 deletions src/tenta-dns/responder/recursive_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -1820,9 +1820,8 @@ func ServeDNS(cfg runtime.RecursorConfig, rt *runtime.Runtime, v4 bool, net stri
panic(fmt.Sprintf("Cannot obtain root trust anchors. [%v]\n", e))
}
}
if provider == dnsProviderOpennic {
transferRootZone(lg, provider)
}

transferRootZone(lg, provider)

pchan := make(chan interface{}, 1)
srv := &dns.Server{Addr: addr, Net: net, NotifyStartedFunc: notifyStarted, Handler: dns.HandlerFunc(dnsRecoverWrap(handleDNSMessage(lg, provider, net, rt), pchan))}
Expand Down

0 comments on commit fc74a13

Please sign in to comment.