Define and inject groupDnResolver where required.