fixes #5675 - expect dns_key setting to be nil if not set.

Thanks to Dominic & Greg.