Pain, redness, and swelling of joints that goes on for any extensive period of time should be investigated by your primary care doctor
Although limited pain and swelling of a joint can be expected after a trauma to the joint, you do not mention any accident, and the involvement of both hands makes that less likely. Therefore, other possibilities should be investigated.
and other inflammatory conditions of the joints would be a possibility. Rheumatoid arthritis often involves the first two joints of the fingers rather than the last one, which seems like what you are experiencing. It also tends to involve multiple joints in multiple sites, so it would be important also to mention to your doctor if you are having any stiffness or pain in other joints other than your hands, such as your knees or elbows, or if you notice any additional swelling. You should also be on the lookout for any fever
, rash, or other unusual symptoms as these may be additional clues for your doctor.
You should also be certain you do not have an infection of the joint, which would usually involve a bright red, warm, and very painful single joint.
Start by talking to your primary care doctor, who can help you sort out what is going on.