More python3 fixes

Make the dns plugin work under python3 (dependency name is different between python2 and python3.)