In the basic idafah taught here, the first noun takes neither tanwin nor ال, and the second noun is genitive.
كِتَابُ الْوَلَدِ: كِتَابُ has no tanwin or ال; الْوَلَدِ is the genitive mudaf ilayh.
These structural signs help you identify the relationship before deciding definiteness.