DNS resolution does not work on Mac OS X. The flags given to connect() are somehow invalid.
This may be related to different handling of IPv4 and IPv6 compared to Linux. More debugging needed...
Debugging logs:
[0x0050DD0001000000] dns_resolve(): connect(): Invalid argument
[0x0080E50001000000] dns_resolve(): connect(): Invalid argument