[zeromq-dev] IP name resolution caching?

Steven McCoy steven.mccoy at miru.hk
Fri May 27 18:30:47 CEST 2011

On 28 May 2011 00:25, Martin Sustrik <sustrik at 250bpm.com> wrote:

> Hi,
> > Do you know whether the getaddrinfo() call in ip.cpp, used to resolve
> > a hostname, will requery DNS each time?
> POSIX is not specific about how the query is done. It is not even
> specifically tied to DNS. So, implementation details are left to OS
> implementors.
It uses NSS which can be tied to DNS which can use one of the many NSS
caching services as the entire system is currently undergoing evolution to
support offline use for Kerberos and files.

Which ultimately means you may on various platforms have bugs due to DNS TTL
not being respected.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110528/ca447603/attachment.htm>

More information about the zeromq-dev mailing list