Implemented srv record selection