Resolve .local names to addresses for Curl

Curl won't do mDNS names, so turn it into an IP address.
Requires Ruby 2.1