host,script: Fix IP lookup parsing

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>