add more config options

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