Move DNS code into after/ftplugin file