add hosts to config file