add option to use internal hostnames

Add an option to use the internal hostnames even if an external exists.