mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 19:43:32 +00:00
248c6d54bb
Added necessary constants (DNS_TYPE_PTR, NI_NUMERICHOST etc.). Implementation of getnameinfo is similar to getaddrinfo, with internal functions: * ResolveDnsReverse: performs rDNS query and parses the PTR record * ResolveHostsReverse: reads /etc/hosts to map hostname to address Earlier, the HOSTS.txt would only need to be sorted at loading time, because the only kind of lookup was name -> address. Now since address -> name lookups are also possible, so the HostsTxt struct, the sorting method (and the related tests) was changed to reflect this. |
||
---|---|---|
.. | ||
comparednsnames_test.c | ||
dnsheader_test.c | ||
dnsquestion_test.c | ||
parsehoststxt_test.c | ||
parseresolvconf_test.c | ||
pascalifydnsname_test.c | ||
resolvehoststxt_test.c | ||
test.mk |