The postfix package ships a script in /etc/resolvconf/update-libc.d/ to restart
postfix when resolv.conf is updated. As far as I know, that still works if the
resolvconf package is installed, but if not (i.e. Debian default), what's the
equivalent? Does systemd-resolved have an equivalent? Should users that want
this functionality install resolvconf?
The whole point is resolvconf is to be a common interface between producers: >* ifup/ifdown
* DHCP clients
* PPP daemon
* local name servers
and consumers:
* DNS caches
* resolver libraries (including glibc)
If systemd-resolved doesn't interface with resolvconf yet, then these tools >should be taught to pass data, instead of inventing a yet another
user-facing interface.
The postfix package ships a script in /etc/resolvconf/update-libc.d/ to restart
postfix when resolv.conf is updated. As far as I know, that still works if the
resolvconf package is installed, but if not (i.e. Debian default), what's the equivalent? Does systemd-resolved have an equivalent? Should users that want
this functionality install resolvconf?
It does. My question is on the other end of the problem. Once resolv.conf is updated, how do I trigger an action for another package? In this case it's copy the updated resolv.conf into the chroot and restart postfix. I know how to do everythingexcept for the trigger.
On Wed, Dec 29, 2021 at 04:35:22PM -0500, Scott Kitterman wrote:
The postfix package ships a script in /etc/resolvconf/update-libc.d/ to restart postfix when resolv.conf is updated. As far as I know, that
still works if the resolvconf package is installed, but if not (i.e.
Debian default), what's the equivalent? Does systemd-resolved have an equivalent? Should users that want this functionality install
resolvconf?
Why do you need to restart services on resolv.conf changes? The libc resolver takes care of it by re-reading the file after it changed.
On Thu, Dec 30, 2021 at 01:48:49AM +0000, Scott Kitterman wrote:
It does. My question is on the other end of the problem. OnceMaybe you should stop supporting the non-standard chroot configuration?
resolv.conf is updated, how do I trigger an action for another package?
In this case it's copy the updated resolv.conf into the chroot and
restart postfix. I know how to do everything except for the trigger.
I believe I can solve this problem by adding Recommends: resolvconf if that's the only way. I had hoped there would be some "modern" way to do it from within Debian's default package set.
I believe I can solve this problem by adding Recommends: resolvconf if that's the only way. I had hoped there would be some "modern" way to do it from within Debian's default package set.
Scott Kitterman <debian@kitterman.com> writes:
I believe I can solve this problem by adding Recommends: resolvconf if that's the only way. I had hoped there would be some "modern" way to do
it from within Debian's default package set.
Funny. That seems to have been the solution to this bug almost 20 years
ago too: https://bugs.debian.org/154669
Maybe you should stop supporting the non-standard chroot configuration?What do you mean by non-standard? It's true that the upstream default is now not in the chroot, but it's totally a configuration supported by upstream.
How would you suggest handling upgrades? I've no idea how to determine if an installation is chrooted because the administrator wanted it chrooted or if it's merely because that's been the default in Debian for over 20 years.
I believe I can solve this problem by adding Recommends: resolvconf if that's the only way. I had hoped there would be some "modern" way to do it from within Debian's default package set.
On 29.12.21 22:35, Scott Kitterman wrote:
The postfix package ships a script in /etc/resolvconf/update-libc.d/ to restart
postfix when resolv.conf is updated.
Why copy the file? Couldn't you bind mount it into the chroot so you
don't need to update it everytime the host /etc/resolv.conf changes?
I would too. It would be nice if systemd-resolved had some mechanism to support this kind of functionality. If you're going to replace resolvconf, then you ought to actually replace it.systemd-resolved is supposed to forward queries to the upstream resolver
systemd-resolved is supposed to forward queries to the upstream resolver
and always be available on 127.0.0.53, so what does actually change in resolve.conf when using it?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 43:01:20 |
Calls: | 6,648 |
Files: | 12,193 |
Messages: | 5,329,632 |