2020-11-15 21:17:37 +08:00
|
|
|
|
package dnsconfigs
|
|
|
|
|
|
|
2021-05-27 17:08:57 +08:00
|
|
|
|
// ClusterDNSConfig 集群的DNS设置
|
2020-11-15 21:17:37 +08:00
|
|
|
|
type ClusterDNSConfig struct {
|
2022-08-25 19:18:25 +08:00
|
|
|
|
CNameRecords []string `yaml:"cnameRecords" json:"cnameRecords"` // 自动加入的CNAME
|
|
|
|
|
|
TTL int32 `yaml:"ttl" json:"ttl"` // 默认TTL,各个DNS服务商对记录的TTL的限制各有不同
|
|
|
|
|
|
CNameAsDomain bool `yaml:"cnameAsDomain" json:"cnameAsDomain"` // 是否可以像域名一样直接访问CNAME
|
|
|
|
|
|
IncludingLnNodes bool `yaml:"includingLnNodes" json:"includingLnNodes"` // 是否包含Ln节点
|
2021-09-20 16:38:00 +08:00
|
|
|
|
|
2020-11-15 21:17:37 +08:00
|
|
|
|
NodesAutoSync bool `yaml:"nodesAutoSync" json:"nodesAutoSync"` // 是否自动同步节点状态
|
|
|
|
|
|
ServersAutoSync bool `yaml:"serversAutoSync" json:"serversAutoSync"` // 是否自动同步服务状态
|
|
|
|
|
|
}
|