add hosts support for dns

This commit is contained in:
ginuerzh
2022-01-19 16:33:27 +08:00
parent 1e613fc2e6
commit f357117056
11 changed files with 212 additions and 53 deletions

View File

@ -70,15 +70,15 @@ type ResolverConfig struct {
Nameservers []NameserverConfig
}
type HostConfig struct {
type HostMappingConfig struct {
IP string
Hostname string
Aliases []string `yaml:",omitempty"`
}
type HostsConfig struct {
Name string
Entries []HostConfig
Name string
Mappings []HostMappingConfig
}
type ListenerConfig struct {