The 1831 census has 4 Donoughy households. No Donahue, so I suspect the spelling of the name in Ireland was Donaghy or Donoughy. (Donahue is not a common name in Co Derry). Interestingly 2 were RC but 2 were “other protestant” so Reformed Presbyterian, Quaker, Baptist, or some such denomination. So if you know James’s denomination it may narrow the likely family down, and there might be church records if the family were not RC. (Sadly the RC parish records don’t start till 1864, so there won’t be any record of his baptism if he was that denomination).
The above families all lived near each other so chances are they were related.
The tithe applotment records for Lisdillon in 1834 list those who were farming in the parish at that time. It lists 4 Donaghy households each with a farm there then.
I looked at Griffiths Valuation for Lisdillon in 1858 and there were no Donahue households listed, but several Donaghy.
By the 1901 census, there was 1 Donaghy Farm. They were Presbyterians.
Plus one married into a Thompson family. He was Reformed Presbyterian (Covenanter):
No Torrey households in the townland in the 1831 census. 4 Torry families in the parish in the tithes for 1834, but none in Glenderowen, and none there in Griffiths Valuation in 1858 either. It was quite a small townland with just 4 farms in Griffiths. Still 4, houses with a total of 21 people, in the 1901 census. None named Torry.
As with the Donahue/Donaghy family, the RC parish records don’t go back far enough to cover John’s birth.