Avoid undefined index notice for failed DNS lookups

Stupid lack of error checking is stupid