Hi and welcome to Healthcare Magic. Thanks for your question...
You don't have rabies
and you never had rabies before. If the dog which had bitten you was alive and well for 5 months after the bite, then it didn't have rabies when it bit you and so, you could not have contracted the infection. Moreover, untreated rabies is a 100% fatal disease and so it is not possible that you have had it before also. Please be assured that you don't have to worry at all about the dog bit at the age of 5. In the future, if you are bitten by a dog (hope this shouldn't happen) please go to a doctor for vaccination
Wish you all the best.
- Dr. Jonas Sundarakumar