How to make a sun in Blender?
I would do this in Cycles using volumetric lighting.



Here's the basic setup: just one light on a landscape.



Then add a cube around the scene with some volume scatter and volume absorption as materials.





for the background you can use a color ramp like this: