The most sensible approach to avoid dehydration is to limit alcohol consumption and drink responsibly. Drinking water before, during and after alcohol consumption can also assist avoiding dehydration.
Whilst you will experience increased urination whilst drinking alcohol, the day after when you recognise your dehydration, you will likely find yourself with reduced urine volume and frequency with a very dark colour. As you re-establish yourself to a hydrated state you will notice a return to normal frequency and your urine should return to being lightly coloured or clear, which may also align with you feeling a bit better.