By charter, ordinance, or resolution, a city, county, or city and county may designate and charge a department organized to carry out the purposes of this part, or an officer charged with the responsibility of carrying out this part, with the enforcement of this part, the building standards published in the California Building Standards Code, or any other rules and regulations adopted pursuant to this part for the protection of the public health, safety, and general welfare as set forth in Section 17921. However, this section shall apply to the duties and responsibilities enumerated in Section 17962 only if, in the area involved, there is no city, county, or city and county fire department or district providing fire protection services. By March 1 of each year, the designated department or officer shall provide in writing to the department the name, address, telephone number, and contact person of the designated department or officer.