add check 4 dig before checking hostname resolves

resolves case 8 where you will get a warning that the server cannot
resolve a hostname to an IP when dig not exist. It should check for dig
and if present will do the check and return. If not found and it will
provide an error that its missing.