cosmopolitan/test/libc/dns
Gautham 248c6d54bb
Added getnameinfo with only name lookup (#172)
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.
2021-06-09 19:35:44 -07:00
..
comparednsnames_test.c Make minor improvements 2021-05-15 21:53:26 -07:00
dnsheader_test.c Make minor improvements 2021-05-15 21:53:26 -07:00
dnsquestion_test.c Make minor improvements 2021-05-15 21:53:26 -07:00
parsehoststxt_test.c Added getnameinfo with only name lookup (#172) 2021-06-09 19:35:44 -07:00
parseresolvconf_test.c Make minor improvements 2021-05-15 21:53:26 -07:00
pascalifydnsname_test.c Make minor improvements 2021-05-15 21:53:26 -07:00
resolvehoststxt_test.c Added getnameinfo with only name lookup (#172) 2021-06-09 19:35:44 -07:00
test.mk Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00