RATIONALE: Drugs used in chemotherapy use different ways to stop tumor cells from dividing so they stop growing or die. Radiation therapy uses high-energy x-rays to damage tumor cells. Thalidomide may stop the growth of cancer by stopping blood flow to the tumor. Combining whole-brain radiation therapy with thalidomide and temozolomide may kill more tumor cells.