core/net/resolv: refactored to only use a single question parsing loop.