Add DNS Server Config

This commit is contained in:
Samuel Lorch 2023-04-24 19:14:52 +02:00
parent 45b5406960
commit c961387776
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,6 @@
package service
type DNSServer struct {
Interface string `json:"interface"`
Comment string `json:"comment,omitempty"`
}

View file

@ -3,4 +3,5 @@ package service
type Service struct {
DHCPv4Servers []DHCPv4Server `json:"dhcp_v4_servers" validate:"required,dive"`
DHCPv6Servers []DHCPv6Server `json:"dhcp_v6_servers" validate:"required,dive"`
DNSServers []DNSServer `json:"dns_servers" validate:"required,dive"`
}