Rycasting against Terrain

for some reason, Raycasting doesnt work against terrain, reallt confused by it so i wondered if its my code or if am missing something (more then likely the latter - not good to be coding at 4am >…<)

            Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
            RaycastHit[] hits;
            hits = Physics.RaycastAll(ray,200);
            
            foreach (var item in hits)
            {
                if (item.transform.name == "Ground")
                {
                    PlaceHolder.transform.position = item.point;
                    PlaceHolder.transform.position = new Vector3(Mathf.RoundToInt(PlaceHolder.transform.position.x), Mathf.RoundToInt(PlaceHolder.transform.position.y), Mathf.RoundToInt(PlaceHolder.transform.position.z));
                    break;
                }
            }

200 might not be enough distance to hit the terrain.

I would try it with an unrestricted distance.

If you are trying to raycast a terrain hit, rather than doing a raycastall, use layers and layermasks to restrict it down so that it will only hit the terrain