DNA contains Adenine (A), Cytosine (C), Guanine (G) and Thymine (T). RNA contains the same N-bases as DNA, except that Uracil (U) replaces Thymine.
In addition, others nitrogenous bases are sometimes present in DNA or RNA. For example, methylated cytosine is fairly common in DNA. Xanthine is also commonly found in RNA.