The Supreme Court of India has laid down guidelines for courts when ordering DNA tests to ascertain paternity. The court emphasized the need to balance the interests of all parties involved, including the child, parents, and other stakeholders. It also recognized the potential for infringement of privacy and the social stigma associated with illegitimate children. The court stressed that DNA tests should only be ordered when existing evidence is insufficient and when such tests are in the best interests of all parties involved.