dig command examples

C++
Use syntax structure of dig command for requesting a url domain`s info:
dig [@Server] [Domain] [Typ] [-x IP-Adresse] 
Example:
dig -t A redhat.com +noall +answer 
#To get summarized domain info of type address with answer
Source

Also in C++: