A paternity test is the most accurate way to confirm a biological relationship between an alleged father and a child. However, if the alleged father is unavailable or unwilling to participate, a grandparent DNA test can be an alternative. The accuracy of the results depends on whether one or both paternal grandparents take part in the testing.