Page MenuHomeFreeBSD

ping: do reverse DNS lookup for a reply by default
ClosedPublic

Authored by jansucan on Aug 21 2019, 1:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 9, 1:10 AM
Unknown Object (File)
Mon, Apr 8, 3:27 AM
Unknown Object (File)
Thu, Apr 4, 2:55 AM
Unknown Object (File)
Jan 17 2024, 10:53 AM
Unknown Object (File)
Sep 20 2023, 4:33 AM
Unknown Object (File)
Sep 12 2023, 3:51 AM
Unknown Object (File)
Aug 19 2023, 3:18 PM
Unknown Object (File)
Jul 9 2023, 10:53 AM
Subscribers

Details

Summary

Do reverse DNS lookup for a reply by default

Submitted by: Ján Sučan <sucanjan@gmail.com>
Sponsored by: Google LLC (Google Summer of Code 2019)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Aug 21 2019, 2:51 PM
This revision was automatically updated to reflect the committed changes.

Hm, I'm not sure I like this being the new default. I guess Linux does it, but there are or used to be many networks where reverse DNS was totally broken (as in, silently dropped). It is nice that ping is mostly a test of IP (ICMP) and not the higher level UDP/TCP protocols DNS uses.

Is there a very short timeout on rDNS lookup failure or on broken networks will ping just hang for 30 seconds at a time?

In D21351#464706, @cem wrote:

Hm, I'm not sure I like this being the new default. I guess Linux does it, but there are or used to be many networks where reverse DNS was totally broken (as in, silently dropped). It is nice that ping is mostly a test of IP (ICMP) and not the higher level UDP/TCP protocols DNS uses.

Is there a very short timeout on rDNS lookup failure or on broken networks will ping just hang for 30 seconds at a time?

Personally, I could go either way for the default. What's most important IMHO is that ping and ping6 have the same default. Until now, they didn't.

Personally, I could go either way for the default. What's most important IMHO is that ping and ping6 have the same default. Until now, they didn't.

I agree they should have the same default. But I think generally, where such defaults might conflict, the IPv4 version of the tool's default takes precedence. IPv4 is still the dominant protocol, as much as we'd all like that to change. The foo6 utilities are all secondary.

Maybe the title of this revision is not completely exact. The F_NUMERIC option flag has been cleared by default so it's more like ping was intended to do reverse lookups by default.

After reading opinions of both of you, I lean a bit more towards numeric only output being default. It will be done in the next diff.