[collectd] How often does Collectd read resolv.conf?

Kevin Burton 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
res_init.

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
> http://mailman.verplant.org/listinfo/collectd
>



-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20150605/7e265c39/attachment.html>


More information about the collectd mailing list