Enlarged lymph nodes are often near the source of infection, so their location can help find out the cause. For example, a baby with a scalp infection may have enlarged lymph nodes at the back of the neck. ... Infections caused by viruses or bacteria. Infection of a lymph node or small group of nodes.