Allow the use of DNS discovery for eureka connections

Might be worth pulling out the index part of this into a variable to just make it a little clearer what's going on.