Skip to content

Commit

Permalink
Reliability and speedup related to wildcard detection
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Jul 11, 2021
1 parent 2e30b35 commit 0135edc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion systems/local.go
Expand Up @@ -326,7 +326,9 @@ func publicResolverSetup(cfg *config.Config, max int) resolve.Resolver {
if len(trusted) == 0 {
return nil
}
baseline := resolve.NewResolverPool(trusted, time.Second, nil, 1, cfg.Log)

wcd := resolve.NewBaseResolver("8.8.8.8", 100, cfg.Log)
baseline := resolve.NewResolverPool(trusted, time.Second, wcd, 1, cfg.Log)

r := setupResolvers(config.PublicResolvers, max, config.DefaultQueriesPerPublicResolver, cfg.Log)
return resolve.NewResolverPool(r, 2*time.Second, baseline, 2, cfg.Log)
Expand Down

0 comments on commit 0135edc

Please sign in to comment.