Something which doesn\'t rely on native libraries would be better.
You could try the dnspython library: