Repository navigation
docs: document what VPNs should do to systemd-resolved.service - #17678
Conversation
c3453f8 to
5371cc3
Compare
DemiMarie
left a comment
There was a problem hiding this comment.
- Grammar nits
- Use an IP block reserved for documentation
- Note the security risks of using search domains from an untrusted source.
There was a problem hiding this comment.
| parent domain of all domains, but itself.) When used on an interface any DNS | |
| parent domain of all domains, by itself.) When used on an interface any DNS |
There was a problem hiding this comment.
I actually intended to say "but" here. i.e. the "." domain is the transitive parent of all domains, except for one: the "." domain itself, since domains are not parent of themselves. does that make sense?
There was a problem hiding this comment.
In that case, the word “except” might be clearer.
There was a problem hiding this comment.
It would be nice to have a convenience utility that handles all of this in one command. For example resolvectl vpn corporate corporate0 '~corp.company.example' 192.0.2.0/24.
There was a problem hiding this comment.
please file a separate RFE issue about that.
Fixes: systemd#17588 systemd#17512 Prompted-by: systemd#17529 (Also relevant: systemd#6076)
5371cc3 to
b074b8d
Compare
|
Force pushed a new version, with most of the comments above addressed, for the others see above. I added a whole section at the end about downgrading server-supplied search domains to routing domains, or suppressing them altogether. |
keszybz
left a comment
There was a problem hiding this comment.
There's still some typos and a few places could use a bit of copyediting, but let's do that in follow-up PRs.
| these (or sub-domains thereof) defined as routing domains, will be preferably | ||
| used for doing reverse IP to domain name lookups. e.g. declaring | ||
| `~168.192.in-addr.arpa` on an interface means that all lookups to find the | ||
| domain names for IPv4 addresses 192.168.x.y are preferable routed to it. |
| And one more note: the domain routing logic implemented is a tiny bit more | ||
| complex that what described above: if there two interfaces have search domains | ||
| that are suffix of each other, and a name is looked up that matches both, the | ||
| interface with the longer match will win and get the lookup routed to is DNS |
| is particularly relevant if you have one interface with the `~.` routing domain | ||
| and another one with `~corp.company.example` — both suffixes match a lookup for | ||
| `foo.corp.company.example`, but the latter interface wins, since the match is | ||
| for four labels, while the other is for zero labels. |
| available a bunch of servers, all in the domain `corp.company.example`. | ||
|
|
||
| 2. One VPN interface of the *privacy* kind, maybe called `privacy0`. When it is | ||
| up all DNS traffic shall preferably routed to its DNS servers. |
|
|
||
| With this configuration if only `wifi0` is up, all DNS traffic goes to its DNS | ||
| server, since there are no other interfaces with better matching DNS | ||
| configuration. If `privacy0` is then upped, all DNS traffic will exclusively go |
Fixes #17588.
Fixes #17512.
Prompted-by: #17529
(Also relevant: #6076)