adding method for defining host entries