Only certain Pokémon learn it by levelling up or by breeding (which means the father must know it).
You can get a full list here:
http://bulbapedia.bulbagarden.net/wiki/Moonlight
Chat with our AI personalities
Moonlight is only available as a move a pokemon can learn through leveling up.
Canalave City
shroomish!!!!!!!! you have to migrate to get on diamond, pearl and platinum
pastoria city
no