HomeFreeBSD

ping: Consistently use EX_NOHOST for DNS failures.

Description

ping: Consistently use EX_NOHOST for DNS failures.

Traditionally, ping returned exit code EX_NOHOST if a DNS lookup failed.
That is still the case for the legacy code in the new merged ping, but
not for IPv6 targets, nor when a DNS lookup is performed in order to
determine which version of the tool to invoke.

While here, also make sure that the error message is consistent.

Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D42159

Details

Provenance
desAuthored on Oct 11 2023, 7:44 PM
Reviewer
kevans
Differential Revision
D42159: ping: Consistently use EX_NOHOST for DNS failures.
Parents
rG6a804af4c0e3: pkgbase: Move uuidgen to runtime package
Branches
Unknown
Tags
Unknown