powerdns-remote-http-example/cfg.go

29 lines
531 B
Go
Raw Normal View History

2024-06-04 03:20:21 +03:00
package main
import (
"time"
nft "github.com/google/nftables"
)
const (
cfgListen = "127.0.0.1:8086"
2024-06-30 11:51:09 +03:00
cfgTtlMin uint32 = 120
cfgTtlMax uint32 = 1800
2024-06-04 03:20:21 +03:00
cfgResolverEndpoint = "127.1.0.1:53"
cfgResolverProto = "tcp"
2024-06-30 11:51:09 +03:00
cfgResolverTimeout = 1900 * time.Millisecond
2024-06-04 03:20:21 +03:00
cfgNftTable = "uni"
cfgNftTableFamily = nft.TableFamilyINet
cfgNftMapV4 = "tele4"
cfgNftMapV6 = "tele6"
2024-06-06 07:44:26 +03:00
cfgNftCidrV4 = "198.18.0.0/15"
cfgNftCidrV6 = "2001:db8:11::/80"
2024-06-04 11:57:44 +03:00
cfgSoaNs = "gw.vpn."
cfgSoaMbox = "dns.gw.vpn."
2024-06-04 03:20:21 +03:00
)