Pull request for issue #4

This patch should be backward-compatible so users can optionally pass in a (now-deprecated) `Addr` value and that will be used when provided within this library.

This is a patch for issue #4.
Is HostName the replacement for Addr here? So if I wanted to publish a service with a specific IP address I could store that as a string in HostName?