Question: do inanimate objects have dna?
Answer: DNA itself is inanimate in the first place so it can either be involved in producing life (if it finds itself in a cellular environment, where its replication can be facilitated), or it doesn't have to produce life if such conditions are not met.