Skip to content

Commit

Permalink
Merge pull request #1189 from flouthoc/container_dns_server
Browse files Browse the repository at this point in the history
libnetwork: add `DNSServers` to `NetworkOptions`
  • Loading branch information
openshift-merge-robot authored Oct 17, 2022
2 parents e773600 + def1176 commit 40ed160
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libnetwork/types/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ type NetworkOptions struct {
// Networks contains all networks with the PerNetworkOptions.
// The map should contain at least one element.
Networks map[string]PerNetworkOptions `json:"networks"`
// List of custom DNS server for podman's DNS resolver.
// Priority order will be kept as defined by user in the configuration.
DNSServers []string `json:"dns_servers,omitempty"`
}

// PortMapping is one or more ports that will be mapped into the container.
Expand Down

0 comments on commit 40ed160

Please sign in to comment.