refactor in GloboDns plugin to not store ids and improve tests