Add a check to make sure that host is an IP address - otherwise bad things will happen

Signed-off-by: Johannes Tuchscherer <jtuchscherer@pivotallabs.com>