add option to use internal hostnames