Force resolvers to reconnect after connecting to SPN

This commit is contained in:
Daniel 2023-01-30 11:33:03 +01:00
parent bd0314ee9e
commit 3d69216c27
8 changed files with 103 additions and 17 deletions

View file

@ -96,3 +96,7 @@ func (pr *PlainResolver) Query(ctx context.Context, q *Query) (*RRCache, error)
// TODO: check if reply.Answer is valid
return newRecord, nil
}
// ForceReconnect forces the resolver to re-establish the connection to the server.
// Does nothing for PlainResolver, as every request uses its own connection.
func (pr *PlainResolver) ForceReconnect(_ context.Context) {}