A dye laser spectrometer, whose sideband frequency was stabilized to a hyperfine component of molecular iodine, was developed for the magnetooptical trap of sodium atoms. The frequency difference between the transition from 3S1/2, F=2 to the 3P3/2, F′=3 of a sodium atom and the f component of the P(38) line in the 15-2 band of the molecular iodine was measured to be 1047.2±0.3 MHz. The optimum laser frequency for the magnetooptical trap of a sodium atom was obtained.