If a landlord is not a resident of this state or is a corporation not authorized to do business in this state and engages in any conduct in this state governed by this chapter, or engages in a transaction subject to this chapter, the landlord may designate an agent upon whom service of process may be made in this state. The agent shall be a resident of this state or a corporation authorized to do business in this state. The agent shall be the same person designated under AS 34.03.080. The designation shall be in writing and filed with the commissioner of commerce, community, and economic development. If no designation is made and filed or if process cannot be served in this state upon the designated agent, process may be served upon the commissioner of commerce, community, and economic development, but the service upon the commissioner is not effective unless the plaintiff or petitioner immediately mails a copy of the process and pleadings by certified or registered mail to the defendant or respondent at the last ascertainable address of the defendant or respondent. An affidavit of compliance with this section shall be filed with the clerk of the court having jurisdiction on or before the return day for the process, if any, or within any further time allowed by the court.
AS 34.03.340