title: How to use DNS resolver in Python 3?
body: <p>I want to check MX-Record from Python. So I installed the <code>dnspython</code> package, but when I try to import following library:</p>
  
  <pre><code>import dns.resolver
  </code></pre>
  
  <p>It shows the following error:</p>
  
  <pre><code>ModuleNotFoundError: No module named 'dns'.
  </code></pre>
  
  <p>I use PyCharm and Python 3.</p>