It's important to keep in mind that even with a dental dam, there is still some risk of infection.
If you choose to perform anilingus, be sure to use a dental dam and practice safe sex. This includes avoiding contact with feces and urine, using condoms for insertive and receptive anal intercourse, and getting tested for STIs regularly.