title: How can I do DNS lookups in Python, including referring to /etc/hosts?
body: <p><a href="http://www.dnspython.org" rel="noreferrer">dnspython</a> will do my DNS lookups very nicely, but it entirely ignores the contents of <code>/etc/hosts</code>.</p>
  
  <p>Is there a python library call which will do the right thing? ie check first in <code>etc/hosts</code>, and only fall back to DNS lookups otherwise?</p>