Leśnik was formerly part of the German Empire. In the German Empire, the place was called Hegerswalde.
The place is now called Leśnik and belongs to Poland.
| Historical place name | Country | Administration | Time |
|---|---|---|---|
| Leschnig | German Empire | Neustadt O.S. | 1936 |
| Hegerswalde | German Empire | Neustadt O.S. | 1939 |
| Leśnik | Under Polish administration | Prudnik | 1945 |
| Leśnik | Poland | Opole | 1992 |