simple host resolution from input file