A graph with vertices is distance magic if the vertices can be labeled with numbers so that the sum of labels of the neighbors of each vertex is equal to the same constant . We present a construction of distance magic graphs arising from arbitrary regular graphs based on an application of magic rectangles. We also solve a problem posed by Shafig, Ali, and Simanjuntak.