Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread Bastian Blank
On Thu, Dec 30, 2021 at 09:19:35PM +0100, Marco d'Itri wrote: > 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? Only if you are using the stub resolver.

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread Marco d'Itri
On Dec 30, Scott Kitterman wrote: > 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

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread Michael Biebl
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

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread Bastian Blank
On Thu, Dec 30, 2021 at 08:26:07AM -0500, Scott Kitterman wrote: > > 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.

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread Scott Kitterman
On Thursday, December 30, 2021 9:01:07 AM EST David Bremner wrote: > Scott Kitterman 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. >

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread Scott Kitterman
On Thursday, December 30, 2021 8:50:48 AM EST Bjørn Mork wrote: > Scott Kitterman 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. > >

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread David Bremner
Scott Kitterman 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. I hope that wouldn't interfere with an enabled systemd-resolved, otherwise

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread Bjørn Mork
Scott Kitterman 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

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread Scott Kitterman
On Thursday, December 30, 2021 2:36:45 AM EST Bastian Blank wrote: > On Thu, Dec 30, 2021 at 01:48:49AM +, Scott Kitterman wrote: > > 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

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-30 Thread Scott Kitterman
On Thursday, December 30, 2021 2:35:56 AM EST Bastian Blank wrote: > 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

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-29 Thread Bastian Blank
On Thu, Dec 30, 2021 at 01:48:49AM +, Scott Kitterman wrote: > 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

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-29 Thread Bastian Blank
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

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-29 Thread Scott Kitterman
On December 30, 2021 1:19:45 AM UTC, Adam Borowski wrote: >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 >>

Re: etc/resolvconf/update-libc.d/ equivalent for systemd-resolved

2021-12-29 Thread Adam Borowski
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