Guanine , along with adenine and cytosine , is present in both DNA and RNA , whereas thymine is usually seen only in DNA and uracil only in RNA . Guanine , along with adenine and cytosine , is present in both DNA and RNA , whereas thymine is usually seen only in DNA , and uracil only in RNA .