Added DNS SRV support and changed the invocation to an options-hash format.