adns

C/C++ DNS resolver library with command-line DNS utilities

brewmacoslinux
Try with needOr install directly
Source

About

C/C++ resolver library and DNS resolver utilities

Commands

adnshostadnslogresadnsmailconf

Examples

Perform a simple DNS A record lookup$ adnshost example.com
Query MX records for a domain$ adnshost -t MX example.com
Reverse DNS lookup for an IP address$ adnshost -t PTR 8.8.8.8