Use public ip and hostname for host lookup. Fixes infochimps-labs/ironfan#328

To the maintainer: please review this commit, but delay pulling in until *after* January 1st, 2014 due to release schedules.