mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Add DNS Server Config
This commit is contained in:
parent
45b5406960
commit
c961387776
2 changed files with 7 additions and 0 deletions
6
internal/definitions/service/dns_server.go
Normal file
6
internal/definitions/service/dns_server.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package service
|
||||
|
||||
type DNSServer struct {
|
||||
Interface string `json:"interface"`
|
||||
Comment string `json:"comment,omitempty"`
|
||||
}
|
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue