[aws|dns] 1.8 compat fix