Set primary host and store an array of hosts.