key_name spec and print public dns