In the natural world DNA usually becomes available by death and lysis of other cells, but in the laboratory it is provided by the researcher, often as a genetically engineered fragment or plasmid.
In almost all naturally competent bacteria components of extracellular filaments called type 4 pili (a type of fimbria) bind extracellular double stranded DNA.