Documentation
¶
Overview ¶
Package dnsdefaults defines the country-specific resolvers the doctor checks and offers for the server's own resolver when the node has none configured. Russian nodes use Yandex DNS, mainland Chinese nodes use AliDNS and DNSPod, and other nodes use Cloudflare and Google. An empty node list itself means the server's own resolver; the panel never substitutes these.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForCountry ¶
ForCountry returns the recommended DNS resolvers for a node. Russian nodes use Yandex so Russian services such as gosuslugi.ru resolve reliably; mainland Chinese nodes use AliDNS and DNSPod so Chinese services resolve reliably. Other nodes use Cloudflare and Google. The returned slice belongs to the caller.
Types ¶
This section is empty.