Oracle Cloud Infrastructure (OCI) DNS client library for Node.js and TypeScript. Version 2.132.0. Official SDK from Oracle for managing DNS zones, records, steering policies, and resolver endpoints. Ships with TypeScript types. Part of the monolithic oci-typescript-sdk, released frequently alongside other OCI services. Replaced older sdks; authentication relies on OCI config files, instance principals, or resource principals. Key differentiator: official support and alignment with OCI API updates. Requires OCI account and API signing key.
npm install oci-dnsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes DNS client using OCI config file auth and lists zones in a compartment.
Update imports to 'oci-dns'. See migration guide.
Use current API version specified in client constructor options.
Ensure OCI config file is present. For other auth methods, use InstancePrincipalsAuthenticationDetailsProvider or ResourcePrincipalAuthenticationDetailsProvider.
Use async/await or .then().
Set TypeScript 'module' to 'commonjs' or use 'esModuleInterop: true'.
Run 'npm install oci-dns' and use correct import: 'import { DnsClient } from 'oci-dns'Ensure package and types are installed: 'npm install oci-dns @types/oci-dns' (if needed) and check TypeScript version.
Create ~/.oci/config with proper format or set environment variables OCI_CONFIG_FILE.
Verify the key pair: upload correct public key to OCI user and ensure private key path is correct in config file.