The first thing you need to do is go to the state of birth vital records office. I would try to go with the paternal mother . Meanwhile, you 2 need to have your driver's license and a certified copy of the child's birth certificate then they will let you change the name depending on time contraints. If a lot of time has passed then you will need a lawyer to file a name change petition ...I would call and tell them so they can give you the worst case scenario. ..
File for legitimation the final order will grant all the stuff faster if the mother is giving consent make sure you requested name change add to bc even custody is addressed takes about 31 days
You would need to go to juvenile court to have your child legitimize and at time they will ask you do you want to place the child in your last name.
Thanks! Your answer is awaiting moderation.