On Thu, Aug 07, 2014 at 11:30:02AM +0100, Kevin Chadwick wrote:
> 
> If the only nameserver entry in /etc/resolv.conf is say 127.0.0.1 or
> localhost such as when using unbound couldn't opensmtpds resolver read
> that line and chroot without issues like dhcp changes?

I think the problem is that you can't read the file again after being chrooted.
So you won't know if it's updated.

You could open(2) the file and keep the fd open after chrooting. However, if
resolv.conf would be unlinked and then rewritten, those updates you wouldn't 
get.

-- 
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to