Alcohol does dehydrate you, but when you're physically addicted the headaches and hangovers are few and far between. Normally this is because you're under the influence so often and your body has never had a chance to level out. If you're feeling some headaches, drink some water and then drink some more water. Rest and relax. It'll get better, congrats on keeping sobriety going, keep it up!