The attorney general shall give the director opinions upon all questions of law relating to the construction or interpretation of this chapter, or arising in the administration thereof, that may be submitted to the director, and shall act as attorney for the director in all actions and proceedings brought by or against the director under or pursuant to any provisions of this chapter.