parse host configuration