unify domain name handling in config
Some functions in config expect domain names to be in wire format (e.g. policy.SUFFIX expects result from todname()
function) but some other parts accept string variant (e.g. cache.clear()
).
We really need to standardize on one of these variants, current mix is really confusing.