Achieving single-mode laser operation in nanowire lasers remains a challenge due to a lack of mode selection approaches. We have implemented single-mode lasing using distributed feedback by externally coupling gallium nitride nanowires to a dielectric grating to achieve mode-control. The effective periodicity of the grating experienced by the nanowire was altered using nanomanipulation to change the angular alignment between the nanowire and the grating. The effective periodicity controls the spectral location of the distributed feedback stop-band. Single-mode emission was achieved at an alignment, where the designed periodicity of the grating was experienced by the nanowire. (C) 2014 AIP Publishing LLC.