Answer
An illegitimate child is not considered as the child of the biological father as that recognition may lead to complacency to an adulterous relationship.
If the child becomes a Muslim, he/she may adopt a single name.
and Allah Ta’ala Knows Best
Mufti Ebrahim Desai