In this paper, the original configuration space is applied to generate tool path, which indicate locations of two rotational axes of a 5-axis controlled machine tool. Moreover, A-star algorithm that is one of the methods for route searching is applied to decide tool postures considering the motion of two rotational axes. The developed method can generate tool path limiting the number of used rotational axes, and reducing the moving amount of two rotational axes. Furthermore, the method can generate tool path that avoids the reverse rotation of two rotational axes, which might cause the machining error. As a result, an excellent finished surface is actually obtained, and the usefulness of the developed method is confirmed.