std.ip() with hostnames

Federico Schwindt fgsch at lodoss.net
Tue Jul 22 12:06:40 CEST 2014


I appreciate that but you could use AI_NUMERICHOST to avoid lookups.
Currently that's not the case.


On Tue, Jul 22, 2014 at 9:35 AM, Poul-Henning Kamp <phk at phk.freebsd.dk>
wrote:

> In message <CAJV_h0Ye=
> GpGOo1H-gnemYkoWDnJa5PLJbReYCu9qdWkMPwd8A at mail.gmail.com>
> , Federico Schwindt writes:
>
> >I'm writing a vmod and I noticed std.ip() will happily resolve its
> argument
> >if a hostname is used.  Feature or bug?
>
> std.ip() does a getaddrinfo(3) on its argument by design.
>
>
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20140722/2c3a9c34/attachment.html>


More information about the varnish-dev mailing list