Skip to content

Conversation

@jonathanio
Copy link
Owner

@jonathanio jonathanio commented Aug 29, 2016

Add support for DOMAIN-ROUTE as an option to be passed to the script which will specify the listed domain to be routed using systemd-resolved via this VPN link using the DNS servers specified. This is not the same as DOMAIN or DOMAIN-SEARCH, as both of those options will allow systemd-resolved to append them to any bare name for searching (as in keeping with update-resolv-conf and update-systemd-network), and to some extent, Windows and macOS as well.

Both DOMAIN and DOMAIN-SEARCH will now be searchable domains at all times, which will mirror the logic of scripts already built, for example update-resolv-conf and update-systemd-network. We will introduce a new DOMAIN-ROUTE option to better handle the logic specific to systemd-resolved.
DOMAIN should only ever allowed once. Any subsequent calls should be override the previous. Additionally, DOMAIN should always be first in the search list as it is the primary name defined.
@jonathanio jonathanio added Enhancement WIP This is still being worked on and shouldn't be merged or closed. labels Aug 29, 2016
@jonathanio jonathanio self-assigned this Aug 29, 2016
Made DOMAIN a specific entry for systemd-resolve as the first searchable domain for an entry, and only a single value take (subsequent calls will override any previously set).
This check is supposed to test order, but it relies on the order of the numbers, not the order in the test file. Fix the appended numbers.
Incorrect test 04b meant that the dns_domain_count was incremented with every DOMAIN options supplied, when it should only be set to 1 (i.e. it has a value). Added additional test as well to test alongside DOMAIN-SEARCH.
Add in the required tests for DOMAIN-ROUTE so we can check handling.
run-tests assumed that busctl always ran if TEST_BUSCTL_CALLED was called. If it is expected, and busctl_called is not set, that should be a fail!
Add support for DOMAIN-ROUTE as an option to be passed to the script which will specify the listed domain to be routed using systemd-resolved via this VPN link using the DNS servers specified. This is not the same as DOMAIN or DOMAIN-SEARCH, as both of those options will allow systemd-resolved to append them to any bare name for searching (as in keeping with update-resolv-conf and update-systemd-network), and to some extent, Windows and macOS as well.
@jonathanio jonathanio merged commit e5d3b52 into master Aug 29, 2016
@jonathanio jonathanio deleted the feature/domain-handling branch August 31, 2016 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement WIP This is still being worked on and shouldn't be merged or closed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants