[collectd] How often does Collectd read resolv.conf?
burton at spinn3r.com
Sat Jun 6 00:33:17 CEST 2015
Yes. But only if you’re in C.. .python, java , etc don’t have access to
On Fri, Jun 5, 2015 at 2:46 PM, Dan Fandrich <dan at coneharvesters.com> wrote:
> 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
> > >example.
> > >
> > >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
> > guess.
> 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.
> >>> Dan
> collectd mailing list
> collectd at verplant.org
Location: *San Francisco, CA*
… or check out my Google+ profile
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the collectd