dns: consider the dns-type and the priority when hashing DNS configs
The dns-type must be hashed as well because it contributes to the generated composite configuration. Without this, when the type of a configuration changes (e.g. from DEFAULT to BEST), the DNS manager would determine that there was no change and it wouldn't call update_dns().