Hacker News new | ask | show | jobs
by nonsequitur 1658 days ago
You can directly query `getaddrinfo` with

  getent ahosts myhost
2 comments

Thanks for this. I’ve always wanted to know how to replicate how the OS is resolving.
The OS X equivalent is: dscacheutil -q host -a name MYHOST