Guanine is one of the five main nucleobases found in the nucleic acids DNA and RNA . Guanine ( G ) is one of the four main nucleobases found in the nucleic acids DNA and RNA , the others being adenine , cytosine , and thymine ( uracil in RNA ) .