title: Elixir - Making DNS Queries (Using dig command)
body: <p>I need to create a DNS request and get a response.
  I run this command in Linux(Ubuntu) to send a request and get a response:</p>
  
  <pre><code>dig +nocmd google.com txt +noall +answer
  </code></pre>
  
  <p>Response:</p>
  
  <pre><code>google.com.             3400    IN      TXT     "facebook-domain-verification=22rm551cu4k0ab0bxsw536tlds4h95"
  google.com.             100     IN      TXT     "docusign=05958488-4752-4ef2-95eb-aa7ba8a3bd0e"
  google.com.             100     IN      TXT     "docusign=1b0a6754-49b1-4db5-8540-d2c12664b289"
  google.com.             3400    IN      TXT     "globalsign-smime-dv=CDYX+XFHUw2wml6/Gb8+59BsH31KzUr6c1l2BPvqKX8="
  google.com.             3400    IN      TXT     "v=spf1 include:_spf.google.com ~all"
  </code></pre>
  
  <p>Can I use <strong><em>dig</em></strong> command in Elixir? Perhaps there are libraries that can help me solve this problem. Unfortunately, so far I have not been able to find such libraries. I would be grateful for your help.</p>