Open kevinburke opened 8 years ago
I could accomplish this by overriding DialContext but that would be doing a lot. Potentially I could do the DNS lookup and then always pass an IP address to the default DialContext.
Added a tracking ticket here for a different way: https://github.com/golang/go/issues/17554
Twilio has a short TTL on api.twilio.com. In the event of a DNS lookup failure, we should try the last known good IP addresses, as it's unlikely the service has changed IP's.