fix negative response and non-response handling for dns queries
authorRich Felker <dalias@aerifal.cx>
Tue, 3 Jun 2014 05:46:40 +0000 (01:46 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 3 Jun 2014 05:46:40 +0000 (01:46 -0400)
commitd85d261ee601f7ccf0bb19c38c69e406a664fe8e
tree84050e89d696caeb81cca49c11a00e8590b8d3c6
parentac2a7893427b6c94f05609d214178f8d5a18b333
fix negative response and non-response handling for dns queries

previously, all failures to obtain at least one address were treated
as nonexistant names (EAI_NONAME). this failed to account for the
possibility of transient failures (no response at all, or a response
with rcode of 2, server failure) or permanent failures that do not
indicate the nonexistence of the requested name. only an rcode of 3
should be treated as an indication of nonexistence.
src/network/lookup_name.c