It is hypothesized that a highly ordered, relatively defect-free dilute magnetic semiconductor system should act as a weak ferromagnet. Transition-metal-doped ZnO nanowires, being single crystalline, single domain, and single phase, are used here as a model system for probing the local dopant coordination environments using X-ray absorption spectroscopy and diffraction. Our X-ray spectroscopic data clearly show that the dopant resides in a uniform environment, and that the doping does not induce a large degree of disorder in the nanowires. This homogeneous nature of the doping inside the oxide matrix correlates well with observed weakly ferromagnetic behavior of the nanowires.