If you're going to go with a dual purpose dildo, I'd highly recommend using something made of silicone, glass or metal, as you can sterilize that when going anal-to-vaginal.
If you choose a dildo that isn't silicone, metal, glass or ceramic, you should use a condom whenever using it in your vagina!