dig +noall +answer

C++
dig +noall +answer google.de
Source

Also in C++: