Files
worker/checks/cdns/config.go
Gleb Tv 2c7a0236da feat: publish standalone worker
Separate worker packaging and service lifecycle from the control plane.
2026-07-13 17:55:14 +03:00

40 строки
792 B
Go

package cdns
import (
"time"
"github.com/miekg/dns"
)
// DNS check configuration constants.
const (
// Timeout is the DNS query timeout in seconds.
Timeout float64 = float64(1.5)
MaxTrials uint = 3
MaxNameservers uint = 20
MaxAddresses uint = 10
EdnsbufferSize uint16 = 4096
)
var (
conf *dns.ClientConfig
debug = false
maxTrials = 3
v4only = true
v6only = false
bufsize = EdnsbufferSize
timeout = time.Duration(float64(Timeout) * float64(time.Second))
noedns = false
recursion = false
tcp = false
noauthrequired = false
nodnssec = false
)
func init() {
conf = &dns.ClientConfig{
Servers: []string{"8.8.8.8", "1.1.1.1", "77.88.8.8"},
Port: "53",
}
}