When a doctor feels for lymph nodes, they are checking for

any swelling, tenderness, or abnormality in the lymph nodes. This can help to determine if there is an infection, inflammation, or other underlying medical condition present in the body.