Fixes #7372 - Smart proxy return 400 when DNS entry not found

If DNS entry is not found, return 404
Not sure I understand the comment. Do you think it should return an error here?