The DNA molecule is the most evolved and most complex molecule created by nature. The primary role of DNA in medicine is long-term storage of genetic information. Genetic modifying is one of the most critical challenges that scientists face. On the other hand, it is said that under the influence of acoustic, electromagnetic, and scalar waves, the genetic code of DNA can be read or rewritten. In this article, the most accurate and comprehensive dynamic model will be presented for DNA. Each of the two strands is modeled with an out of plane curved beam and then by doubling this two strands with springs, consider the hydrogen bond strength between this two strands. Beams are traditionally descriptions of mechanical engineering structural elements or building. However, any structure such as automotive automobile frames, aircraft components, machine frames, and other mechanical or structural systems contain beam structures that are designed to carry lateral loads are analyzed similarly. Also, in this model, the mass of the nucleobases in the DNA structure, the effects of the fluid surrounding the DNA (nucleoplasm) and the effects of temperature changes are also considered. Finally, by deriving governing equations from Hamilton’s principle method and solving these equations with the generalized differential quadrature method (GDQM), the frequency and mode shape of the DNA is obtained for the first time. In the end, validation of the obtained results from solving the governing equations of mathematical model compared to the obtained results from the COMSOL software is confirmed. By the help of these results, a conceptual idea for controlling cancer with using the DNA resonance frequency is presented. This idea will be presented to stop the cancerous cell’s protein synthesis and modifying DNA sequence and genetic manipulation of the cell. On the other hand, by the presented DNA model and by obtaining DNA frequency, experimental studies of the effects of waves on DNA such as phantom effect or DNA teleportation can also be studied scientifically and precisely.