use socket.gethostbyname_ex instead of a subprocess call to "getent host ..."
fix typo in "configuration"
Merged @heroldus commit.