Lookup IPv4 and IPv6 addresses for a hostname. Only prints addresses on stdout (one per line), errors and warnings to stderr, and hard errors can be detected through inspecting the exit code.
stdout
stderr