Page MenuHomeFreeBSD

ping: Consistently use EX_NOHOST for DNS failures.
ClosedPublic

Authored by des on Oct 11 2023, 7:18 PM.
Tags
None
Referenced Files
F147305635: D42159.id128608.diff
Mon, Mar 9, 8:05 PM
F147305631: D42159.id128608.diff
Mon, Mar 9, 8:05 PM
Unknown Object (File)
Tue, Feb 24, 6:28 AM
Unknown Object (File)
Fri, Feb 20, 4:31 AM
Unknown Object (File)
Tue, Feb 10, 5:56 PM
Unknown Object (File)
Jan 31 2026, 3:38 PM
Unknown Object (File)
Jan 31 2026, 3:26 PM
Unknown Object (File)
Jan 31 2026, 9:10 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Oct 11 2023, 7:18 PM
This revision is now accepted and ready to land.Oct 11 2023, 7:21 PM
This revision now requires review to proceed.Oct 11 2023, 7:38 PM
This revision is now accepted and ready to land.Oct 11 2023, 7:41 PM