Skip to content

Commit

Permalink
support dns forward rules in machine config (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
DAlperin committed Mar 7, 2024
1 parent eb8bb9d commit 7efc2d0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions machine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,10 +659,16 @@ type MachineInit struct {
}

type DNSConfig struct {
SkipRegistration bool `json:"skip_registration,omitempty"`
Nameservers []string `json:"nameservers,omitempty"`
Searches []string `json:"searches,omitempty"`
Options []dnsOption `json:"options,omitempty"`
SkipRegistration bool `json:"skip_registration,omitempty"`
Nameservers []string `json:"nameservers,omitempty"`
Searches []string `json:"searches,omitempty"`
Options []dnsOption `json:"options,omitempty"`
DNSForwardRules []dnsForwardRule `json:"dns_forward_rules,omitempty"`
}

type dnsForwardRule struct {
Basename string `json:"basename,omitempty"`
Addr string `json:"addr,omitempty"`
}

type dnsOption struct {
Expand Down

0 comments on commit 7efc2d0

Please sign in to comment.