How can I add a DNS record so that example.com resolves to my server.example.com in the OS X Server app?
If you have added a machine record (e.g. server.example.com) the primary zone example.com has been already created automagically.

To view all records (including your primary and the reverse zone) click on the gear near the bottom of the window and choose 'View All Records'.