package dns
Import Path
google.golang.org/grpc/internal/resolver/dns (on go.dev)
Dependency Relation
imports 18 packages, and imported by one package
Involved Source Files
Package dns implements a dns resolver to be installed as the default resolver
in grpc.
Package-Level Functions (only one)
NewBuilder creates a dnsBuilder which is used to factory DNS resolvers.
Package-Level Variables (total 3)
EnableSRVLookups controls whether the DNS resolver attempts to fetch gRPCLB
addresses from SRV records. Must not be changed after init time.
MinResolutionInterval is the minimum interval at which re-resolutions are
allowed. This helps to prevent excessive re-resolution.
ResolvingTimeout specifies the maximum duration for a DNS resolution request.
If the timeout expires before a response is received, the request will be canceled.
It is recommended to set this value at application startup. Avoid modifying this variable
after initialization as it's not thread-safe for concurrent modification.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |