diff options
author | Rich Felker <dalias@aerifal.cx> | 2022-08-26 14:57:52 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2022-08-26 14:57:52 -0400 |
commit | a636fd630f70da01665c5cfaf01b8a657ef6c2fe (patch) | |
tree | 97b1fc183da78036001a173fd9c417ee326e8cc0 /src/unistd | |
parent | 996b6154b20184c3b08cce28eb01edb7f47e9413 (diff) | |
download | musl-a636fd630f70da01665c5cfaf01b8a657ef6c2fe.tar.gz musl-a636fd630f70da01665c5cfaf01b8a657ef6c2fe.tar.bz2 musl-a636fd630f70da01665c5cfaf01b8a657ef6c2fe.tar.xz musl-a636fd630f70da01665c5cfaf01b8a657ef6c2fe.zip |
dns: fail if ipv6 is disabled and resolv.conf has only v6 nameserves
if resolv.conf lists no nameservers at all, the default of 127.0.0.1
is used. however, another "no nameservers" case arises where the
system has ipv6 support disabled/configured-out and resolv.conf only
contains v6 nameservers. this caused the resolver to repeat socket
operations that will necessarily fail (sending to one or more
wrong-family addresses) while waiting for a timeout.
it would be contrary to configured intent to query 127.0.0.1 in this
case, but the current behavior is not conducive to diagnosing the
configuration problem. instead, fail immediately with EAI_SYSTEM and
errno==EAFNOSUPPORT so that the configuration error is reportable.
Diffstat (limited to 'src/unistd')
0 files changed, 0 insertions, 0 deletions