[collectd] How often does Collectd read resolv.conf?
dan at coneharvesters.com
Fri Jun 5 23:46:55 CEST 2015
On Fri, Jun 05, 2015 at 11:38:05AM +0200, Markus "Shorty" Uckelmann wrote:
> Am 30.05.2015 um 19:55 schrieb Florian Forster:
> >Hi Shorty,
> Peace octo,
> Thanks for the explanation.
> >the write_graphite plugin will call getaddrinfo(3) on every connection
> >attempt. How the name resolution is done depends on the C library – on
> >many GNU/Linux systems DNS is one of multiple possibilities, for
> >If /etc/resolv.conf is read, if it is re-read when modified and so on is
> >out of our control, unfortunately.
> Would be systemd-resolved of any help here? I haven't looked into it. Just a
Note that IIRC glibc (and probably other resolver libraries) will reread
/etc/resolv.conf when res_init() is called, so it's possible for the
application to have some say in when it's reread.
More information about the collectd