A work-around that succeeded was, on /etc/resolv.conf, adding:
options single-request-reopen
Suggesting the root issue:
Sets RES_SNGLKUPREOP in _res.options. The resolver uses the same
socket for the A and AAAA requests. Some hardware mistakenly sends
back only one reply. When that happens the client system will sit and
wait for the second reply. Turning this option on changes this
behavior so that if two requests from the same port are not handled
correctly it will close the socket and open a new one before sending
the second request.
So disabling IPv6 on my Google Wifi router fixed the problem.
time
will tell how much time took the command to run, not how much time the ping took. If youping <bogus ip>
,time
will tell you i.e. 10s, when there was never a real ping involved. – schrodingerscatcuriosity Oct 23 '19 at 22:52