Lunesta and Ambien are two commonly prescribed drugs for short-term use for insomnia. Lunesta is a brand name for eszopiclone. Ambien is a brand name for zolpidem. Both of these medications belong to a class of drugs called sedative-hypnotics.