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 <[email protected]> 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
> [email protected]
> 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>
_______________________________________________
collectd mailing list
[email protected]
http://mailman.verplant.org/listinfo/collectd

Reply via email to