The "dashboard-alarm-get-iter" API is available in ONTAP9 but the "name-service-dns-statistics-get-iter" certainly isn't? I'm not sure why that is but one work around might be to use the "Invoke-NcSystemApi" CmdLet to invoke the ZAPI if the CmdLet isn't available..
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Dashboards no longer exist in ONTAP 9, so that set of APIs (and consequentially cmdlets) will not work. Looking at the API documentation, the ZAPI "name-service-dns-statistics-get-iter" doesn't exist in ONTAP 9 either.
If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.