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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…