Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nonsequitur
· 4y ago · 0 comments
You can directly query `getaddrinfo` with
getent ahosts myhost
Comments
[–]
indigodaddy
4y ago
Thanks for this. I’ve always wanted to know how to replicate how the OS is resolving.
[–]
sgentle
4y ago
The OS X equivalent is: dscacheutil -q host -a name MYHOST