Clean up domain resolving scopes

Switch to .17.home.arpa. for internal use
This commit is contained in:
Daniel
2020-08-14 16:44:19 +02:00
parent 633bb34288
commit 1da8b7148e
8 changed files with 213 additions and 237 deletions

View File

@@ -292,7 +292,7 @@ retry:
func resolveAndCache(ctx context.Context, q *Query) (rrCache *RRCache, err error) { //nolint:gocognit
// get resolvers
resolvers := GetResolversInScope(ctx, q)
resolvers, tryAll := GetResolversInScope(ctx, q)
if len(resolvers) == 0 {
return nil, ErrNoCompliance
}
@@ -330,6 +330,9 @@ resolveLoop:
switch {
case errors.Is(err, ErrNotFound):
// NXDomain, or similar
if tryAll {
continue
}
return nil, err
case errors.Is(err, ErrBlocked):
// some resolvers might also block