catch nameserver lookup errors. ipv6 support. switch to non-negative exit codes on error