Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Fetch DNS listen address from daemon #3231

Merged
merged 3 commits into from
Jul 31, 2020
Merged

Conversation

bboreham
Copy link
Contributor

@bboreham bboreham commented Jan 29, 2018

Fixes #1770

Also drive-by cleanup of dns_args() which was doing a lot of arg parsing needed for weave run, but not much use any more.
(Note if you were using weave dns-args with arguments like -h then that won't work now, but it was never documented to work)

@bboreham bboreham force-pushed the issues/1770-fetch-dns-address branch from 2a05010 to 55114ba Compare January 29, 2018 18:12
@bboreham bboreham force-pushed the issues/1770-fetch-dns-address branch from 55114ba to 93e01dc Compare July 18, 2018 12:46
@bboreham bboreham force-pushed the issues/1770-fetch-dns-address branch from 93e01dc to dd9593b Compare September 6, 2018 11:49
@bboreham bboreham force-pushed the issues/1770-fetch-dns-address branch from 52f42cd to c0e9b10 Compare October 15, 2019 09:06
@bboreham bboreham force-pushed the issues/1770-fetch-dns-address branch from c0e9b10 to d8e9fc9 Compare July 30, 2020 14:32
instead of assuming it's on the Docker bridge

Also move DNS address validation into NewDNSServer(),
so we only do it once.
It was used as part of 'weave run'; does not make sense to support
--name, -h, etc., on 'weave dns-args'.
Now that `weave dns-args` doesn't parse any flags we need to
call it or not call it, which `start_container` will do for us.

Also add back the part of the test where we run weaver with and
without DNS, which had become lost in 8b061fd

Also change a couple of tests to use proxy to start containers,
again to avoid needing `dns-args` to parse flags.
@bboreham bboreham force-pushed the issues/1770-fetch-dns-address branch from 2b26998 to 9ffd0e3 Compare July 31, 2020 12:01
@bboreham bboreham merged commit cdbc25d into master Jul 31, 2020
@bboreham bboreham deleted the issues/1770-fetch-dns-address branch July 31, 2020 12:47
@bboreham bboreham added this to the 2.7 milestone Aug 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make DNS listen address properly configurable
1 participant