use hostname for ip
Merge pull request #8 from michaelnsj/SERVICE_HOST_NAME

Merged.