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.c | ||
consts.h | ||
dns.h | ||
dns.mk | ||
dns.png | ||
dnsheader.c | ||
dnsheader.h | ||
dnsquestion.h | ||
freeaddrinfo.c | ||
freehoststxt.c | ||
freeresolvconf.c | ||
gai_strerror.c | ||
getaddrinfo.c | ||
gethoststxt.c | ||
getnameinfo.c | ||
getntnameservers.c | ||
getresolvconf.c | ||
hoststxt.h | ||
newaddrinfo.c | ||
parsehoststxt.c | ||
parseresolvconf.c | ||
pascalifydnsname.c | ||
resolvconf.h | ||
resolvedns.c | ||
resolvednsreverse.c | ||
resolvehostsreverse.c | ||
resolvehoststxt.c | ||
rfc0226.txt | ||
rfc0247.txt | ||
rfc1035.txt | ||
serializednsquestion.c | ||
sorthoststxt.c |