Question: Is it allowed to use the modern medical means to determine who the father of a child is? It determines that precisely and it is stronger than the issue of (القيافة) [the science of determining the lineage of a child by examining the body parts of a child].
Answer: “I do not know the correctness of this speech in terms of it determining who is the father infinitely. However, (القيافة) is the well-known legislated way. So if something is known in medicine that produces accuracy, then it is from the way of (القيافة) and it is possible to judge by way of it. However, it is necessary for the authenticity of that occurring [i.e. that the test is accurate enough to determine that]”
[Sharh Sunan Abi Dawood no. 260]
Faisal Ibn Abdul Qaadir Ibn Hassan