I can only tell you what happens in Texas... You did not give much information as to the situation. When your daughter has the child, if the father is not there to sign the birth certificate, she can name baby anything she would like.
When your daughter decides to persue child support, DNA will most likely be requested. At that time, the father can petition the courts to have his name put on the birth certificate and have the last name of the child changed to his.