dns: fix clearing of the wrong substitutes dict when updating dns zone cache