最佳答案
dnspython will do my DNS lookups very nicely, but it entirely ignores the contents of /etc/hosts
.
Is there a python library call which will do the right thing? ie check first in etc/hosts
, and only fall back to DNS lookups otherwise?