Catalyzes the oxidation of D-2-hydroxyglutarate to alpha-ketoglutarate. (R)-2-hydroxyglutarate + A = 2-oxoglutarate + AH2 Binds 1 FAD per monomer. Homodimer. Belongs to the FAD-binding oxidoreductase/transferase type 4 family.