Thank you for the query.
Such symptoms may be caused by anal fissure
. Especially when pain appears during passing stool. It is advisable for you to consult it with surgeon. He should closely examine the anus. If fissure will be confirmed, you should drink more water, have fiber rich diet with stool softeners. It is extremely important to prevent constipations and do not push hard on stool. Hot baths with Quercus cortex
can help as well. You can as a doctor to have Lignocaine Gel prescribed.
Hope this will help.