Issue #7822 - don't issue SRV lookups if it's disabled. (barthek)