Sunrise or sunset I use pretty much the same technique.
There are really no tricks, just lots of practice.
#1 I always shoot raw as it gives me more control when post processing
#2 Nowdays - depending on the scene I will either be in aperture priority (with some exposure compensation dilaed in if needed) with the aperture set around F8-F11 (for the more simple scenes) or in manual exposure mode when I think the light meter will be fooled by the light or I am using ND grads (to control the contrast).
#3 ISO will be set to the lowest value that will give me the exposure thet I want
#4 A tripod , and a remote relase give me a lot more exposure options.
#5 I will normall focus about 1/3 the waay into the scene or on most important element in the scene. Manual focus if need be.
#5 No unwanted filters on the lens, to reduce flare.
#6 Use a lens hood if possibe, to reduce flare
#7 Shade the front of the lens, if needed, to reduce flare.
#8 Use the histogram as a guide.
Here are some examples:
#1 Dawn. 3 stop ND grad and a triopd was used.
The photographer by
Richard Taylor, on Flickr
#2 Sunset - Hand held
Sunset at Newcastle (1) by
Richard Taylor, on Flickr
#3 Dawn - A tripod was used.
Toronto sunrise - 7:18am by
Richard Taylor, on Flickr