Repository navigation
resolve: extend systemd-resolve so that it can push per-interface DNS… - #7576
Conversation
2bc40ae to
61ad2ec
Compare
|
lgtm. |
|
From the second to last commits are duplicate to PR #7588. |
There was a problem hiding this comment.
Should we stress that the specified interface is unmanaged? I was very confused by getting the following result.
$ sudo systemd-resolve -i enp0s25 --set-dns=8.8.8.8
Failed to set DNS configuration: Link enp0s25 is managed.
61ad2ec to
a4df462
Compare
|
I force pushed a new version now, that emphasizes the "interface is managed" error in two ways: the man page is more explicitly, and systemd-resolve will actually print a longer explanation now, telling the user what to do. @yuwata ptal! |
There was a problem hiding this comment.
The message is very helpful for me. Thanks. However, why do you add this only for --set-dns=? How about the other options?
There was a problem hiding this comment.
Good question. My thinking was that this exits early in this case, and hence we don't have to add this for the other calls. But that thinking is just wrong, actually, as it is fully valid to change only the search domain but not the DNS server, and in that case this codepath would never be triggered...
I force pushed a new version now, that corrects this.
a4df462 to
12dc03a
Compare
|
Thanks. lgtm. |
… configuration into systemd-resolved This is useful to debug things, but also to hook up external post-up scripts with resolved. Eventually this code might be useful to implement a resolvconf(8)-compatible interface for compatibility purposes. Since the semantics don't map entirely cleanly as first step we add a native interface for pushing DNS configuration into resolved, that exposes the correct semantics, before adding any compatibility interface. See: systemd#7202
12dc03a to
a97a0dc
Compare
… configuration into systemd-resolved
This is useful to debug things, but also to hook up external post-up
scripts with resolved.
Eventually this code might be useful to implement a
resolvconf(8)-compatible interface for compatibility purposes. Since the
semantics don't map entirely cleanly as first step we add a native
interface for pushing DNS configuration into resolved, that exposes the
correct semantics, before adding any compatibility interface.
See: #7202