fix(fqdn): testing a IPv4-only resolution
On behalf of Kristof Verdonck from Cactus-Now (kristof.verdonck@cactus-now.com) from a mailing list message:
During DNS resolution of a host (localhost), the UPF will always take the first entry in the resulted IP address list. This list can contain both IPv4 (127.0.0.1) and IPv6 ( ::1) addresses. The order is not (always) deterministic.
Since the first entry in the DNS resolution is determined by the speed of the various DNS resolvers in your system (docker, host, ..), they are basically racing each other to be first.
If you are unlucky, the first resolved IP address is an IPv6 address. Since IPv6 doesn't seem to be supported in UPF, it will throw() an exception and exit the application.