4 ms·
You can directly query `getaddrinfo` with getent ahosts myhost
by nonsequitur 5y ago
You can directly query `getaddrinfo` with
getent ahosts myhost
- indigodaddy 5y agoThanks for this. I’ve always wanted to know how to replicate how the OS is resolving.
- sgentle 5y agoThe OS X equivalent is: dscacheutil -q host -a name MYHOST