* Russ Allbery <r...@debian.org>, 2016-09-07, 09:26:
Now, that said, assuming that "fail" is not a valid host in the local
domain isn't a good assumption and makes the build fragile. My packages
that perform a similar test use the DNS name addrinfo-test.invalid to
force a failure, which is guaranteed by IANA reservations to not exist.
RFC 6761, §6.4.3 says:
Name resolution APIs and libraries SHOULD recognize "invalid" names as
special and SHOULD always return immediate negative responses. Name
resolution APIs SHOULD NOT send queries for "invalid" names to their
configured caching DNS server(s).
Unfortunately, glibc doesn't seem follow these recommendations. :-\
--
Jakub Wilk