RNA polymerase is used to make copies of DNA from a DNA template during DNA replication. It is therefore considered "DNA-dependent DNA polymerase".
During transcription, RNA polymerase is used to make RNA from a DNA template, therefore it is a DNA-dependent RNA polymerase.
In addition to these enzymes, some viruses use reverse transcriptase, which is an RNA-dependent DNA polymerase, or replicase, which is an RNA-dependent RNA polymerase.