package dns

import "google.golang.org/grpc/internal/resolver/dns"

Package dns implements a dns resolver to be installed as the default resolver in grpc.

Index

Variables

var EnableSRVLookups = false

EnableSRVLookups controls whether the DNS resolver attempts to fetch gRPCLB addresses from SRV records. Must not be changed after init time.

var ResolvingTimeout = 30 * time.Second

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.

Functions

func NewBuilder

func NewBuilder() resolver.Builder

NewBuilder creates a dnsBuilder which is used to factory DNS resolvers.

Source Files

dns_resolver.go

Directories

PathSynopsis
internal/resolver/dns/internalPackage internal contains functionality internal to the dns resolver package.
Version
v1.63.1
Published
Apr 8, 2024
Platform
windows/amd64
Imports
17 packages
Last checked
12 minutes ago

Tools for package owners.