This is a fairly common question. This SE page and the SE page cited in the "Already Answered" note cover the ground nicely.
In short: states issue drivers license to their residents. States define who's a resident and who's not in different ways. Licenses can often be renewed remotely, although doing so requires being able to receive mail in the state, or having an accommodating friend who'll let you use their address. There doesn't seem to be much (or any) state-level enforcement or investigation of the issue of residency.
The risk is that if it's easily seen that you don't actually live in the state for which you hold a license and therefore don't qualify for it, that someone might find it useful to argue the license isn't valid. You shouldn't have difficulty renting a car, say, but if there's an accident, damage, or civil dispute, insurance coverage on the rental car obtained with this license could be in jeopardy, as well as your ability to claim damages against the driver of another vehicle with which you're involved in an accident.