Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to allow setting DNS search list for containers #98

Merged
merged 1 commit into from
Jan 10, 2017
Merged

Added option to allow setting DNS search list for containers #98

merged 1 commit into from
Jan 10, 2017

Conversation

msabansal
Copy link
Contributor

DNSSearchList allows us to set DNS suffixes for containers. This is required to support --dns-search docker option.

Signed-off-by: msabansal [email protected]

@@ -65,6 +65,7 @@ type ContainerConfig struct {
HvRuntime *HvRuntime `json:",omitempty"` // Hyper-V container settings. Used by Hyper-V containers only. Format ImagePath=%root%\BaseLayerID\UtilityVM
Servicing bool // True if this container is for servicing
AllowUnqualifiedDNSQuery bool // True to allow unqualified DNS name resolution
DNSSearchList string // List of DNS suffixes to use for resolution
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to have this as an array?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably would have been a better option. However,  I have already done the platform work for this and have it as a comma separated string there :(. I also don't expect this to change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K. Perhaps you could comment on there that it's a comma separated list.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok adding the comment.

@msabansal
Copy link
Contributor Author

@jhowardmsft PTAL

@lowenna
Copy link
Contributor

lowenna commented Jan 10, 2017

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants