(maint) make SRV record lookup more generic

To be able to support SRV record lookup in puppetdb-terminus etc.