We propose a method to all-electrically control a domain-wall position in a ferromagnetic nanowire with Dzyaloshinskii-Moriya interaction. The strength of this interaction can be controlled by an external electric field, which in turn allows a fine tuning of the pinning potential of a spin-spiral domain wall. It allows to create more mobile pinning sites and can also be advantageous for ultra-low power electronics.