[Cloud DNS](https://cloud.google.com/dns/what-is-cloud-dns) is a high-performance, resilient, global DNS service that provides a cost-effective way to make your applications and services available to your users. This programmable, authoritative DNS service can be used to easily publish and manage DNS records using the same infrastructure relied upon by Google.
// Imports the Google Cloud client libraryconst{DNS}=require('@google-cloud/dns');// Creates a clientconstdns=newDNS();asyncfunctionquickstart(){// Lists all zones in the current projectconst[zones]=awaitdns.getZones();console.log('Zones:');zones.forEach(zone=>console.log(zone.name));}quickstart();
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[],[]]