News for hackers. Stuff that matters.
Re:How to use dig by nonsequitur on Saturday December 04, 2021 @12:55PM (#29442677)
You can directly query `getaddrinfo` with

  getent ahosts myhost
Re:How to use dig by indigodaddy on Saturday December 04, 2021 @03:35PM (#29444074)
Thanks for this. I’ve always wanted to know how to replicate how the OS is resolving.
Re:How to use dig by sgentle on Saturday December 04, 2021 @09:45PM (#29446309)
The OS X equivalent is: dscacheutil -q host -a name MYHOST