Y
Hacker News
new
|
ask
|
show
|
jobs
by
nonsequitur
1658 days ago
You can directly query `getaddrinfo` with
getent ahosts myhost
2 comments
indigodaddy
1658 days ago
Thanks for this. I’ve always wanted to know how to replicate how the OS is resolving.
link
sgentle
1657 days ago
The OS X equivalent is: dscacheutil -q host -a name MYHOST
link