Add public-host option

This feature is needed to support servers with different private and
public ip addresses, e.g. Amazon EC2 instances.

Reference:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html