sex advice ?!!

soo me and my boyfriend had sex last night for the second time since we started dating (march 2018) and both times he’s tried to do doggy style anal and it hurts so bad , maybe i’m doing something wrong ?? or does it really hurt ??😭