Who has legal custody of minor child when parents have never married and fathers name is on birth certificate?

In general the mother. The father has to petition in court for visitation and custody after he has established paternity by DNA test. Then he can also pay child support.