let's sya you got dandruff for a few years, maybe 4 years or something, maybe less and now your lymph glands are swollen only in the back of the neck both sides, they are not painfull to tough, but some of them when you touch giving you strange feeling. Just some feeling, others just like you touch your skin and they are not moving and hard. Not painful. By the way, sometimes head's being stratched like when you are bored or watching movie you just strach those dandruff a little, not very hard in lots of places. So is that possible that this is because of the dandruff? And head's being washed with Head n Shoulders shampoo for a month or something.
I wouldn't expect their to be any relationship between lymph nodes and dandruff. I've had dandruff for years and never had swollen lymph nodes. I use a fairly strong shampoo too Nizoral 2 Shampoo ( http:://nizoral2shampoo.blogspot.com ) these days and still no problem. If you ever have swollen nodes I'd immediately seek a doctor's advice