On Wed, Dec 16, 2015 at 04:17:53PM -0500, Ted Unangst wrote: > > > > This seems to have been fixed in -current. Verified by running: > > > > openbsd:~ sparkhom$ getent hosts 1755800511 > > 104.167.99.19 11755800511 > > that doesn't call getaddrinfo().
Are you sure? In hostsaddrinfo(): if (getaddrinfo(name, NULL, &hints, &res0) == 0) { Which gets called in hosts() after both inet_pton calls return 0: if (inet_pton(AF_INET6, argv[i], (void *)addr) > 0) he = gethostbyaddr(addr, IN6ADDRSZ, AF_INET6); else if (inet_pton(AF_INET, argv[i], (void *)addr) > 0) he = gethostbyaddr(addr, INADDRSZ, AF_INET); if (he != NULL) hostsprint(he); else if ((rv = hostsaddrinfo(argv[i])) == RV_NOTFOUND) break;