linux dig command all dns records

C++
> dig google.com ANY

Source

Also in C++: