react-native-dns-lookup icon indicating copy to clipboard operation
react-native-dns-lookup copied to clipboard

SRV records is not working

Open siddhiEcosmob opened this issue 3 years ago • 1 comments

I have tried SRV records and it's throwing Error: Unable to resolve host "SRV-URL": No address associated with hostname. could you please help with the error? Please find the code snippet below.

getIpAddressesForHostname("SRV-url").then(ipAddresses => console.log(ipAddresses));

siddhiEcosmob avatar Jun 22 '22 12:06 siddhiEcosmob

Thanks @siddhiEcosmob. Yes, we do not have currently have any logic to support SRV records.

It looks like it can be done on android with additional dependencies (some suggestions here)

And on ios, there an example here.

I don't have enough knowledge around SRVs to try to add this functionality to the library. If you have an idea how you can fit it into the library, I would encourage you to create a pull request.

mmathewsTableau avatar Oct 06 '22 20:10 mmathewsTableau