acyclovir and gancyclovire are "nucleoside analogues" of guanosine and inhibitors of DNA synthesis by herpes viruses. the compounds are phosphorylated by a viral kinase and the resulting nucleotides inhibit DNA synthesis by the viral and cellular DNA polymerases, thus only infected cells are inhibited