CCE NodeLocal DNSCache Description

CCE CCE

  • Function Release Records
  • Common Tools
    • Command Line Scenario Examples
  • API Reference
    • Overview
    • Common Headers and Error Responses
    • General Description
  • Product Announcement
    • Announcement on the Discontinuation of CCE Standalone Clusters
    • CCE New Cluster Management Release Announcement
    • Upgrade Announcement for CCE Cluster Audit Component kube-external-auditor
    • CCE Console Upgrade Announcement
    • Announcement on Management Fees for CCE Managed Clusters
    • Container Runtime Version Release Notes
    • Announcement on the Decommissioning of CCE Image Repository
    • Kubernetes Version Release Notes
      • CCE Release of Kubernetes v1_26 History
      • CCE Kubernetes Version Update Notes
      • CCE Release of Kubernetes v1_24 History
      • CCE Release of Kubernetes v1_30 History
      • CCE Release of Kubernetes v1_22 History
      • CCE Release of Kubernetes v1_18 History
      • CCE Release of Kubernetes v1_20 History
      • CCE Release of Kubernetes v1_28 History
      • Release Notes for CCE Kubernetes 1_31 Version
      • Kubernetes Version Overview and Mechanism
    • Security Vulnerability Fix Announcement
      • Vulnerability CVE-2019-5736 Fix Announcement
      • Vulnerability CVE-2021-30465 Fix Announcement
      • CVE-2025-1097, CVE-2025-1098, and Other Vulnerabilities Fix Announcement
      • CVE-2020-14386 Vulnerability Fix Announcement
      • Impact Statement on runc Security Issue (CVE-2024-21626)
  • Service Level Agreement (SLA)
    • CCE Service Level Agreement SLA (V1_0)
  • Typical Practices
    • Pod Anomaly Troubleshooting
    • Adding CGroup V2 Node
    • Common Linux System Configuration Parameters Description
    • Encrypting etcd Data Using KMS
    • Configuring Container Network Parameters Using CNI
    • CCE - Public Network Access Practice
    • Practice of using private images in CCE clusters
    • Unified Access for Virtual Machines and Container Services via CCE Ingress
    • User Guide for Custom CNI Plugins
    • CCE Cluster Network Description and Planning
    • Cross-Cloud Application Migration to Baidu CCE Using Velero
    • CCE Resource Recommender User Documentation
    • Continuous Deployment with Jenkins in CCE Cluster
    • CCE Best Practice-Guestbook Setup
    • CCE Best Practice-Container Network Mode Selection
    • CCE Usage Checklist
    • VPC-ENI Mode Cluster Public Network Access Practice
    • CCE Container Runtime Selection
    • Cloud-native AI
      • Elastic and Fault-Tolerant Training Using CCE AITraining Operator
      • Deploy the TensorFlow Serving inference service
      • Best Practice for GPU Virtualization with Optimal Isolation
  • FAQs
    • How do business applications use load balancer
    • Using kubectl on Windows
    • Cluster management FAQs
    • Common Questions Overview
    • Auto scaling FAQs
    • Create a simple service via kubectl
  • Operation guide
    • Prerequisites for use
    • Identity and access management
    • Permission Management
      • Configure IAM Tag Permission Policy
      • Permission Overview
      • Configure IAM Custom Permission Policy
      • Configure Predefined RBAC Permission Policy
      • Configure IAM Predefined Permission Policy
      • Configure Cluster OIDC Authentication
    • Configuration Management
      • Configmap Management
      • Secret Management
    • Traffic access
      • BLB ingress annotation description
      • Use K8S_Service via CCE
      • Use K8S_Ingress via CCE
      • Implement Canary Release with CCE Based on Nginx-Ingress
      • Create CCE_Ingress via YAML
      • LoadBalancer Service Annotation Description
      • Service Reuses Existing Load Balancer BLB
      • Use Direct Pod Mode LoadBalancer Service
      • NGINX Ingress Configuration Reference
      • Create LoadBalancer_Service via YAML
      • Use NGINX Ingress
    • Virtual Node
      • Configuring BCIPod
      • Configuring bci-profile
      • Managing virtual nodes
    • Node management
      • Add a node
      • Managing Taints
      • Setting Node Blocking
      • Setting GPU Memory Sharing
      • Remove a node
      • Customizing Kubelet Parameters
      • Kubelet Container Monitor Read-Only Port Risk Warning
      • Managing Node Tag
      • Drain node
    • Component Management
      • CCE CSI CDS Plugin Description
      • CCE Fluid Description
      • CCE CSI PFS L2 Plugin
      • CCE Calico Felix Description
      • CCE Ingress Controller Description
      • CCE QoS Agent Description
      • CCE GPU Manager Description
      • CCE Ingress NGINX Controller Description
      • CCE P2P Accelerator Description
      • CCE Virtual Kubelet Component
      • CoreDNS Description
      • CCE Log Operator Description
      • CCE Node Remedier Description
      • CCE Descheduler Description
      • CCE Dynamic Scheduling Plugin Description
      • Kube Scheduler Documentation
      • CCE NPU Manager Description
      • CCE CronHPA Controller Description
      • CCE LB Controller Description
      • Kube ApiServer Description
      • CCE Backup Controller Description
      • CCE Network Plugin Description
      • CCE CSI PFS Plugin Description
      • CCE Credential Controller Description
      • CCE Deep Learning Frameworks Operator Description
      • Component Overview
      • CCE Image Accelerate Description
      • CCE CSI BOS Plugin Description
      • CCE Onepilot Description
      • Description of Kube Controller Manager
      • CCE_Hybrid_Manager Description
      • CCE NodeLocal DNSCache Description
      • CCE Node Problem Detector Description
      • CCE Ascend Mindx DL Description
      • CCE RDMA Device Plugin Description
      • CCE AI Job Scheduler Description
    • Image registry
      • Image Registry Basic Operations
      • Using Container Image to Build Services
    • Helm Management
      • Helm Template
      • Helm Instance
    • Cluster management
      • Upgrade Cluster Kubernetes Version
      • CCE Node CDS Dilatation
      • Managed Cluster Usage Instructions
      • Create cluster
      • CCE Supports GPUSharing Cluster
      • View Cluster
      • Connect to Cluster via kubectl
      • CCE Security Group
      • CCE Node Resource Reservation Instructions
      • Operate Cluster
      • Cluster Snapshot
    • Serverless Cluster
      • Product overview
      • Using Service in Serverless Cluster
      • Creating a Serverless Cluster
    • Storage Management
      • Using Cloud File System
      • Overview
      • Using Parallel File System PFS
      • Using RapidFS
      • Using Object Storage BOS
      • Using Parallel File System PFS L2
      • Using Local Storage
      • Using Cloud Disk CDS
    • Inspection and Diagnosis
      • Cluster Inspection
      • GPU Runtime Environment Check
      • Fault Diagnosis
    • Cloud-native AI
      • Cloud-Native AI Overview
      • AI Monitoring Dashboard
        • Connecting to a Prometheus Instance and Starting a Job
        • NVIDIA Chip Resource Observation
          • AI Job Scheduler component
          • GPU node resources
          • GPU workload resources
          • GPUManager component
          • GPU resource pool overview
        • Ascend Chip Resource Observation
          • Ascend resource pool overview
          • Ascend node resource
          • Ascend workload resource
      • Task Management
        • View Task Information
        • Create TensorFlow Task
        • Example of RDMA Distributed Training Based on NCCL
        • Create PaddlePaddle Task
        • Create AI Training Task
        • Delete task
        • Create PyTorch Task
        • Create Mxnet Task
      • Queue Management
        • Modify Queue
        • Create Queue
        • Usage Instructions for Logical Queues and Physical Queues
        • Queue deletion
      • Dataset Management
        • Create Dataset
        • Delete dataset
        • View Dataset
        • Operate Dataset
      • AI Acceleration Kit
        • AIAK Introduction
        • Using AIAK-Training PyTorch Edition
        • Deploying Distributed Training Tasks Using AIAK-Training
        • Accelerating Inference Business Using AIAK-Inference
      • GPU Virtualization
        • GPU Exclusive and Shared Usage Instructions
        • Image Build Precautions in Shared GPU Scenarios
        • Instructions for Multi-GPU Usage in Single-GPU Containers
        • GPU Virtualization Adaptation Table
        • GPU Online and Offline Mixed Usage Instructions
        • MPS Best Practices & Precautions
        • Precautions for Disabling Node Video Memory Sharing
    • Elastic Scaling
      • Container Timing Horizontal Scaling (CronHPA)
      • Container Horizontal Scaling (HPA)
      • Implementing Second-Level Elastic Scaling with cce-autoscaling-placeholder
      • CCE Cluster Node Auto-Scaling
    • Network Management
      • How to Continue Dilatation When Container Network Segment Space Is Exhausted (VPC-ENI Mode)
      • Container Access to External Services in CCE Clusters
      • CCE supports dual-stack networks of IPv4 and IPv6
      • Using NetworkPolicy Network Policy
      • Traffic Forwarding Configuration for Containers in Peering Connections Scenarios
      • CCE IP Masquerade Agent User Guide
      • Creating VPC-ENI Mode Cluster
      • How to Continue Dilatation When Container Network Segment Space Is Exhausted (VPC Network Mode)
      • Using NetworkPolicy in CCE Clusters
      • Network Orchestration
        • Container Network QoS Management
        • VPC-ENI Specified Subnet IP Allocation (Container Network v2)
        • Cluster Pod Subnet Topology Distribution (Container Network v2)
      • Network Connectivity
        • Container network accesses the public network via NAT gateway
      • Network Maintenance
        • Common Error Code Table for CCE Container Network
      • DNS
        • CoreDNS Component Manual Dilatation Guide
        • DNS Troubleshooting Guide
        • DNS Principle Overview
    • Namespace Management
      • Set Limit Range
      • Set Resource Quota
      • Basic Namespace Operations
    • Workload
      • CronJob Management
      • Set Workload Auto-Scaling
      • Deployment Management
      • Job Management
      • View the Pod
      • StatefulSet Management
      • Password-Free Pull of Container Image
      • Create Workload Using Private Image
      • DaemonSet Management
    • Monitor Logs
      • Monitor Cluster with Prometheus
      • CCE Event Center
      • Cluster Service Profiling
      • CCE Cluster Anomaly Event Alerts
      • Java Application Monitor
      • Cluster Audit Dashboard
      • Logging
      • Cluster Audit
      • Log Center
        • Configure Collection Rules Using CRD
        • View Cluster Control Plane Logs
        • View Business Logs
        • Log Overview
        • Configure Collection Rules in Cloud Container Engine Console
    • Application management
      • Overview
      • Secret
      • Configuration dictionary
      • Deployment
      • Service
      • Pod
    • NodeGroup Management
      • NodeGroup Management
      • NodeGroup Node Fault Detection and Self-Healing
      • Configuring Scaling Policies
      • NodeGroup Introduction
      • Adding Existing External Nodes
      • Custom NodeGroup Kubelet Configuration
      • Adding Alternative Models
      • Dilatation NodeGroup
    • Backup Center
      • Restore Management
      • Backup Overview
      • Backup Management
      • Backup repository
  • Quick Start
    • Quick Deployment of Nginx Application
    • CCE Container Engine Usage Process Overview
  • Product pricing
    • Product pricing
  • Product Description
    • Application scenarios
    • Introduction
    • Usage restrictions
    • Features
    • Advantages
    • Core concepts
  • Solution-Fabric
    • Fabric Solution
  • Development Guide
    • EFK Log Collection System Deployment Guide
    • Using Network Policy in CCE Cluster
    • Creating a LoadBalancer-Type Service
    • Prometheus Monitoring System Deployment Guide
    • kubectl Management Configuration
  • API_V2 Reference
    • Overview
    • Common Headers and Error Responses
    • Cluster Related Interfaces
    • Instance Related Interfaces
    • Service domain
    • General Description
    • Kubeconfig Related Interfaces
    • RBAC Related Interfaces
    • Autoscaler Related Interfaces
    • Network Related Interfaces
    • InstanceGroup Related Interfaces
    • Appendix
    • Component management-related APIs
    • Package adaptation-related APIs
    • Task Related Interfaces
  • Solution-Xchain
    • Hyperchain Solution
  • SDK
    • Go-SDK
      • Overview
      • NodeGroup Management
      • Initialization
      • Install the SDK Package
      • Cluster management
      • Node management
All documents
menu
No results found, please re-enter

CCE CCE

  • Function Release Records
  • Common Tools
    • Command Line Scenario Examples
  • API Reference
    • Overview
    • Common Headers and Error Responses
    • General Description
  • Product Announcement
    • Announcement on the Discontinuation of CCE Standalone Clusters
    • CCE New Cluster Management Release Announcement
    • Upgrade Announcement for CCE Cluster Audit Component kube-external-auditor
    • CCE Console Upgrade Announcement
    • Announcement on Management Fees for CCE Managed Clusters
    • Container Runtime Version Release Notes
    • Announcement on the Decommissioning of CCE Image Repository
    • Kubernetes Version Release Notes
      • CCE Release of Kubernetes v1_26 History
      • CCE Kubernetes Version Update Notes
      • CCE Release of Kubernetes v1_24 History
      • CCE Release of Kubernetes v1_30 History
      • CCE Release of Kubernetes v1_22 History
      • CCE Release of Kubernetes v1_18 History
      • CCE Release of Kubernetes v1_20 History
      • CCE Release of Kubernetes v1_28 History
      • Release Notes for CCE Kubernetes 1_31 Version
      • Kubernetes Version Overview and Mechanism
    • Security Vulnerability Fix Announcement
      • Vulnerability CVE-2019-5736 Fix Announcement
      • Vulnerability CVE-2021-30465 Fix Announcement
      • CVE-2025-1097, CVE-2025-1098, and Other Vulnerabilities Fix Announcement
      • CVE-2020-14386 Vulnerability Fix Announcement
      • Impact Statement on runc Security Issue (CVE-2024-21626)
  • Service Level Agreement (SLA)
    • CCE Service Level Agreement SLA (V1_0)
  • Typical Practices
    • Pod Anomaly Troubleshooting
    • Adding CGroup V2 Node
    • Common Linux System Configuration Parameters Description
    • Encrypting etcd Data Using KMS
    • Configuring Container Network Parameters Using CNI
    • CCE - Public Network Access Practice
    • Practice of using private images in CCE clusters
    • Unified Access for Virtual Machines and Container Services via CCE Ingress
    • User Guide for Custom CNI Plugins
    • CCE Cluster Network Description and Planning
    • Cross-Cloud Application Migration to Baidu CCE Using Velero
    • CCE Resource Recommender User Documentation
    • Continuous Deployment with Jenkins in CCE Cluster
    • CCE Best Practice-Guestbook Setup
    • CCE Best Practice-Container Network Mode Selection
    • CCE Usage Checklist
    • VPC-ENI Mode Cluster Public Network Access Practice
    • CCE Container Runtime Selection
    • Cloud-native AI
      • Elastic and Fault-Tolerant Training Using CCE AITraining Operator
      • Deploy the TensorFlow Serving inference service
      • Best Practice for GPU Virtualization with Optimal Isolation
  • FAQs
    • How do business applications use load balancer
    • Using kubectl on Windows
    • Cluster management FAQs
    • Common Questions Overview
    • Auto scaling FAQs
    • Create a simple service via kubectl
  • Operation guide
    • Prerequisites for use
    • Identity and access management
    • Permission Management
      • Configure IAM Tag Permission Policy
      • Permission Overview
      • Configure IAM Custom Permission Policy
      • Configure Predefined RBAC Permission Policy
      • Configure IAM Predefined Permission Policy
      • Configure Cluster OIDC Authentication
    • Configuration Management
      • Configmap Management
      • Secret Management
    • Traffic access
      • BLB ingress annotation description
      • Use K8S_Service via CCE
      • Use K8S_Ingress via CCE
      • Implement Canary Release with CCE Based on Nginx-Ingress
      • Create CCE_Ingress via YAML
      • LoadBalancer Service Annotation Description
      • Service Reuses Existing Load Balancer BLB
      • Use Direct Pod Mode LoadBalancer Service
      • NGINX Ingress Configuration Reference
      • Create LoadBalancer_Service via YAML
      • Use NGINX Ingress
    • Virtual Node
      • Configuring BCIPod
      • Configuring bci-profile
      • Managing virtual nodes
    • Node management
      • Add a node
      • Managing Taints
      • Setting Node Blocking
      • Setting GPU Memory Sharing
      • Remove a node
      • Customizing Kubelet Parameters
      • Kubelet Container Monitor Read-Only Port Risk Warning
      • Managing Node Tag
      • Drain node
    • Component Management
      • CCE CSI CDS Plugin Description
      • CCE Fluid Description
      • CCE CSI PFS L2 Plugin
      • CCE Calico Felix Description
      • CCE Ingress Controller Description
      • CCE QoS Agent Description
      • CCE GPU Manager Description
      • CCE Ingress NGINX Controller Description
      • CCE P2P Accelerator Description
      • CCE Virtual Kubelet Component
      • CoreDNS Description
      • CCE Log Operator Description
      • CCE Node Remedier Description
      • CCE Descheduler Description
      • CCE Dynamic Scheduling Plugin Description
      • Kube Scheduler Documentation
      • CCE NPU Manager Description
      • CCE CronHPA Controller Description
      • CCE LB Controller Description
      • Kube ApiServer Description
      • CCE Backup Controller Description
      • CCE Network Plugin Description
      • CCE CSI PFS Plugin Description
      • CCE Credential Controller Description
      • CCE Deep Learning Frameworks Operator Description
      • Component Overview
      • CCE Image Accelerate Description
      • CCE CSI BOS Plugin Description
      • CCE Onepilot Description
      • Description of Kube Controller Manager
      • CCE_Hybrid_Manager Description
      • CCE NodeLocal DNSCache Description
      • CCE Node Problem Detector Description
      • CCE Ascend Mindx DL Description
      • CCE RDMA Device Plugin Description
      • CCE AI Job Scheduler Description
    • Image registry
      • Image Registry Basic Operations
      • Using Container Image to Build Services
    • Helm Management
      • Helm Template
      • Helm Instance
    • Cluster management
      • Upgrade Cluster Kubernetes Version
      • CCE Node CDS Dilatation
      • Managed Cluster Usage Instructions
      • Create cluster
      • CCE Supports GPUSharing Cluster
      • View Cluster
      • Connect to Cluster via kubectl
      • CCE Security Group
      • CCE Node Resource Reservation Instructions
      • Operate Cluster
      • Cluster Snapshot
    • Serverless Cluster
      • Product overview
      • Using Service in Serverless Cluster
      • Creating a Serverless Cluster
    • Storage Management
      • Using Cloud File System
      • Overview
      • Using Parallel File System PFS
      • Using RapidFS
      • Using Object Storage BOS
      • Using Parallel File System PFS L2
      • Using Local Storage
      • Using Cloud Disk CDS
    • Inspection and Diagnosis
      • Cluster Inspection
      • GPU Runtime Environment Check
      • Fault Diagnosis
    • Cloud-native AI
      • Cloud-Native AI Overview
      • AI Monitoring Dashboard
        • Connecting to a Prometheus Instance and Starting a Job
        • NVIDIA Chip Resource Observation
          • AI Job Scheduler component
          • GPU node resources
          • GPU workload resources
          • GPUManager component
          • GPU resource pool overview
        • Ascend Chip Resource Observation
          • Ascend resource pool overview
          • Ascend node resource
          • Ascend workload resource
      • Task Management
        • View Task Information
        • Create TensorFlow Task
        • Example of RDMA Distributed Training Based on NCCL
        • Create PaddlePaddle Task
        • Create AI Training Task
        • Delete task
        • Create PyTorch Task
        • Create Mxnet Task
      • Queue Management
        • Modify Queue
        • Create Queue
        • Usage Instructions for Logical Queues and Physical Queues
        • Queue deletion
      • Dataset Management
        • Create Dataset
        • Delete dataset
        • View Dataset
        • Operate Dataset
      • AI Acceleration Kit
        • AIAK Introduction
        • Using AIAK-Training PyTorch Edition
        • Deploying Distributed Training Tasks Using AIAK-Training
        • Accelerating Inference Business Using AIAK-Inference
      • GPU Virtualization
        • GPU Exclusive and Shared Usage Instructions
        • Image Build Precautions in Shared GPU Scenarios
        • Instructions for Multi-GPU Usage in Single-GPU Containers
        • GPU Virtualization Adaptation Table
        • GPU Online and Offline Mixed Usage Instructions
        • MPS Best Practices & Precautions
        • Precautions for Disabling Node Video Memory Sharing
    • Elastic Scaling
      • Container Timing Horizontal Scaling (CronHPA)
      • Container Horizontal Scaling (HPA)
      • Implementing Second-Level Elastic Scaling with cce-autoscaling-placeholder
      • CCE Cluster Node Auto-Scaling
    • Network Management
      • How to Continue Dilatation When Container Network Segment Space Is Exhausted (VPC-ENI Mode)
      • Container Access to External Services in CCE Clusters
      • CCE supports dual-stack networks of IPv4 and IPv6
      • Using NetworkPolicy Network Policy
      • Traffic Forwarding Configuration for Containers in Peering Connections Scenarios
      • CCE IP Masquerade Agent User Guide
      • Creating VPC-ENI Mode Cluster
      • How to Continue Dilatation When Container Network Segment Space Is Exhausted (VPC Network Mode)
      • Using NetworkPolicy in CCE Clusters
      • Network Orchestration
        • Container Network QoS Management
        • VPC-ENI Specified Subnet IP Allocation (Container Network v2)
        • Cluster Pod Subnet Topology Distribution (Container Network v2)
      • Network Connectivity
        • Container network accesses the public network via NAT gateway
      • Network Maintenance
        • Common Error Code Table for CCE Container Network
      • DNS
        • CoreDNS Component Manual Dilatation Guide
        • DNS Troubleshooting Guide
        • DNS Principle Overview
    • Namespace Management
      • Set Limit Range
      • Set Resource Quota
      • Basic Namespace Operations
    • Workload
      • CronJob Management
      • Set Workload Auto-Scaling
      • Deployment Management
      • Job Management
      • View the Pod
      • StatefulSet Management
      • Password-Free Pull of Container Image
      • Create Workload Using Private Image
      • DaemonSet Management
    • Monitor Logs
      • Monitor Cluster with Prometheus
      • CCE Event Center
      • Cluster Service Profiling
      • CCE Cluster Anomaly Event Alerts
      • Java Application Monitor
      • Cluster Audit Dashboard
      • Logging
      • Cluster Audit
      • Log Center
        • Configure Collection Rules Using CRD
        • View Cluster Control Plane Logs
        • View Business Logs
        • Log Overview
        • Configure Collection Rules in Cloud Container Engine Console
    • Application management
      • Overview
      • Secret
      • Configuration dictionary
      • Deployment
      • Service
      • Pod
    • NodeGroup Management
      • NodeGroup Management
      • NodeGroup Node Fault Detection and Self-Healing
      • Configuring Scaling Policies
      • NodeGroup Introduction
      • Adding Existing External Nodes
      • Custom NodeGroup Kubelet Configuration
      • Adding Alternative Models
      • Dilatation NodeGroup
    • Backup Center
      • Restore Management
      • Backup Overview
      • Backup Management
      • Backup repository
  • Quick Start
    • Quick Deployment of Nginx Application
    • CCE Container Engine Usage Process Overview
  • Product pricing
    • Product pricing
  • Product Description
    • Application scenarios
    • Introduction
    • Usage restrictions
    • Features
    • Advantages
    • Core concepts
  • Solution-Fabric
    • Fabric Solution
  • Development Guide
    • EFK Log Collection System Deployment Guide
    • Using Network Policy in CCE Cluster
    • Creating a LoadBalancer-Type Service
    • Prometheus Monitoring System Deployment Guide
    • kubectl Management Configuration
  • API_V2 Reference
    • Overview
    • Common Headers and Error Responses
    • Cluster Related Interfaces
    • Instance Related Interfaces
    • Service domain
    • General Description
    • Kubeconfig Related Interfaces
    • RBAC Related Interfaces
    • Autoscaler Related Interfaces
    • Network Related Interfaces
    • InstanceGroup Related Interfaces
    • Appendix
    • Component management-related APIs
    • Package adaptation-related APIs
    • Task Related Interfaces
  • Solution-Xchain
    • Hyperchain Solution
  • SDK
    • Go-SDK
      • Overview
      • NodeGroup Management
      • Initialization
      • Install the SDK Package
      • Cluster management
      • Node management
  • Document center
  • arrow
  • CCECCE
  • arrow
  • Operation guide
  • arrow
  • Component Management
  • arrow
  • CCE NodeLocal DNSCache Description
Table of contents on this page
  • Component introduction
  • Operating Principle Diagram of NodeLocal DNSCache
  • NodeLocal DNSCache usage
  • Method I: Automatically inject DNSConfig
  • Method II: Manually add DNSConfig
  • Method III: Configure kubelet startup parameters
  • Component function
  • Application scenarios
  • Usage restrictions
  • Install component
  • Method I: Install CCE Node Local DNS via component management
  • Method II: Install CCE NodeLocal DNSCache via Helm template
  • Deployment status
  • Observability
  • Add metric collection task for CCE NodeLocal DNSCache in CProm
  • Version records

CCE NodeLocal DNSCache Description

Updated at:2025-10-27

Component introduction

The CCE NodeLocal DNSCache component provides a DNS local cache solution based on the open-source NodeLocal DNSCache project. Deploying NodeLocal DNS in a CCE Kubernetes cluster enhances the stability and performance of service discovery. It improves cluster DNS performance by deploying a DNS cache proxy as a DaemonSet on cluster nodes. This component includes two main parts: NodeLocal DNSCache for local cache and the dynamic injection controller that handles DNSConfig injection deployment.

  • The NodeLocal DNSCache creates a Pod on each node that listens to a local IP address (default IP: 169.254.20.10). Using the injected DNSConfig configuration, DNS requests from the Pod are proxied through the Local DNS local cache.

The Node Local DNS service is built on CoreDNS but focuses solely on providing proxy and cache functionality.

  • The dynamic injection controller for DNSConfig uses the Admission Webhook mechanism to intercept Pod creation requests and automatically inject DNSConfig into newly created Pods.

If the Webhook is disabled, you will need to manually configure and add DNSConfig.

Operating Principle Diagram of NodeLocal DNSCache

localdns schematic diagram. svg

  • During Pod creation, an Admission Webhook is employed to automatically inject DNSConfig into the Pod.
  • In the Pod’s domain name resolution process, the data chain is as follows:
No. Description
1 For Pods with DNSConfig injected, NodeLocal DNSCache listens to the node's IP address by default to handle domain name resolution requests.
2 If NodeLocal DNSCache lacks a cached response for a resolution request, it forwards the request to CoreDNS or VPC DNS, depending on whether the domain name is intra-cluster or not.
3 For domain names that cannot be resolved by NodeLocal DNSCache, CoreDNS continues the resolution using the VPC DNS server.
4 For Pods with DNSConfig injected, local DNS is prioritized for requests. If the local DNS connection fails, the request is forwarded to CoreDNS. However, if the Pod's DNS request library does not support retries after a timeout, only local DNS will be used.
5 Pods without DNSConfig injection will default to requesting the standard kube-dns service for CoreDNS resolution.

NodeLocal DNSCache usage

To use NodeLocal DNSCache and redirect traffic to CoreDNS through the local NodeLocal DNSCache DaemonSet proxy, you need to inject DNSConfig configuration into the Pod. Three methods are available:

  • Method I: Install the CCE Node Local DNS component and enable DNSConfig injection using the Webhook provided by the component. This is the recommended approach.
  • Method II: Manually add DNSConfig to the Pod
  • Method III: Modify the kubelet parameters and restart kubelet to apply changes. This method is not recommended due to the potential for service disruptions.

Method I: Automatically inject DNSConfig

Prerequisites:

  • Install the CCE NodeLocal DNSCache component in the cluster

The DNSConfig dynamic injection controller simplifies the process by automatically injecting DNSConfig when a Pod is created, removing the need for manual setup. By default, the Webhook listens for Pod creation requests in namespaces labeled with cce.baidu.com/node-local-dns-injection=enabled. You can apply this label to a namespace using the following command:

Shell
1kubectl label namespace default cce.baidu.com/node-local-dns-injection=enabled

Please note:

  • The above command adds the automatic injection label only to the default namespace, meaning that Pods created in the default namespace will trigger the Webhook for automatic DNSConfig injection. To apply this setup to a different namespace, replace "default" with your desired namespace.
  • Under the above conditions, if you need to exempt some Pods (i.e., not inject DNSConfig), you can add the following label to the Pod: cce.baidu.com/node-local-dns-injection=disabled.

After automatic DNSConfig injection takes effect, newly created Pods will have the following fields added:

YAML
1dnsConfig:
2  nameservers:
3  - 169.254.20.10
4  - 172.21.0.10
5  options:
6  - name: ndots
7    value: "3"
8  - name: attempts
9    value: "2"
10  - name: timeout
11    value: "1"
12  searches:
13  - default.svc.cluster.local
14  - svc.cluster.local
15  - cluster.local
16dnsPolicy: None

Description:

  • nameservers: Configure the IP address corresponding to the ClusterIP of 169.254.20.10 (default) and kube dns; ClusterIP will serve as the backup DNS server address
  • searches: Set search domains to ensure that intra-cluster domain names are resolved correctly, defaulting to default.svc.cluster.local, svc.cluster.local and cluster.local
  • ndots: The default is 3, and ndots can be appropriately reduced to improve resolution efficiency
  • attempts: The default is 2 (number of resolution attempts)
  • timeout: The default is 1 (timeout duration)

In Method I, if DNSConfig is not injected into your newly created Pod, check the following conditions (automatic Pod injection is only implemented when all conditions are met):

  1. The Namespace where the Pod is located contains the label: cce.baidu.com/node-local-dns-injection=enabled
  2. The namespace where the Pod is located is not: kube-system, cce-monitor or cprom-system
  3. The Pod does not contain the label: cce.baidu.com/node-local-dns-injection=disabled
  4. The Pod does not contain scheduling configurations requiring deployment to VirtualKubelet nodes (such as node selection and node affinity)
  5. The Pod’s hostNetwork is false and DNSPolicy is ClusterFirst or none, or hostNetwork is true and DNSPolicy is ClusterFirstWithHostNet

Method II: Manually add DNSConfig

If Method I is not adopted, you need to manually add DNSConfig. A reference example is as follows:

YAML
1apiVersion: v1
2kind: Pod
3metadata:
4  name: test01
5  namespace: default
6spec:
7  containers:
8  - image: registry.baidubce.com/cce-plugin-pro/cce-cni/netshoot:latest
9    command:
10      - sleep
11      - "100000"
12    imagePullPolicy: Always
13    name: net-debug-container
14  dnsPolicy: None
15  dnsConfig:
16    nameservers: ["169.254.20.10","172.21.0.10"]
17    searches:
18    - default.svc.cluster.local
19    - svc.cluster.local
20    - cluster.local
21    options:
22    - name: ndots
23      value: "3"
24    - name: attempts
25      value: "2"
26    - name: timeout
27      value: "1"

Please note:

  • dnsPolicy must be none
  • For descriptions of other parameters, please refer to Method I

Method III: Configure kubelet startup parameters

You can globally control Pod DNSConfig by modifying kubelet startup parameters. For details, please refer to: Using NodeLocal DNSCache in Kubernetes Clusters.

Component function

  • The DNSConfig dynamic injection controller deployment can automatically add DNSConfig configurations to newly created Pods
  • Running NodeLocal DNS Cache as a Daemonset on cluster nodes can significantly improve intra-cluster DNS resolution performance

Application scenarios

Deploying NodeLocal DNSCache as a DaemonSet enhances cluster DNS performance.

Usage restrictions

  • Cluster version 1.18 or higher
  • CCE NodeLocal DNSCache does not support ARM clusters or edge clusters
  • Be able to access the cluster using kubectl. For operation steps, refer to: Connect to the Cluster via Kubectl

Install component

There are two ways to install the CCE NodeLocal DNSCache component: via component management or Helm templates. Installation through component management is recommended.

Method I: Install CCE Node Local DNS via component management

  1. Sign in to the Baidu AI Cloud Official Website and enter the management console.
  2. Go to Product Services - Cloud Native - Cloud Container Engine (CCE) to access the CCE management console.
  3. Click Cluster Management > Cluster List in the left navigation bar.
  4. Click on the target cluster name in the Cluster List page to navigate to the cluster management page.
  5. On the Cluster Management page, click Component Management.
  6. In the component management list, select the NodeLocal DNSCache component and click Install.
  7. Click the OK button to complete the component installation.

Method II: Install CCE NodeLocal DNSCache via Helm template

  1. Sign in to the Baidu AI Cloud Official Website and enter the management console.
  2. Select Product Services > Cloud Native > Cloud Container Engine (CCE) to enter the CCE management console.
  3. Click Helm > Helm Templates in the left navigation bar.
  4. On the Helm Template page, click Baidu AI Cloud Templates to enter the Template Management page.
  5. On the Template Management page, select the template named cce-node-local-dns, then click Install.
  6. On the Install Template page, complete the relevant configuration and click the OK button to complete component installation.

b.png

Descriptions of relevant configuration items are as follows:

Parameters Required or not Description Obtain the path
ClusterDNSAddr Yes The IP address corresponding to the ClusterIP of kube-dns in the kube-system namespace enables NodeLocal DNSCache to communicate with CoreDNS for intra-cluster domain name resolution. Connect to the cluster via kubectl and enter the command kubectl get service kube-dns -n kube-system to obtain the corresponding IP address. You can modify this parameter if you need to specify a different upstream DNS server. No default value; obtained from the cluster.
LocalDNSAddr No LocalDNSAddr is the local listening IP address selected by cce-node-local-dns Set to 169.254.20.10 by default (can be modified).
searchDomains No Search for domain names to ensure that internal domain names in the cluster can be resolved normally Set to default.svc.cluster.local, svc.cluster.local, cluster.local by default (can be modified).
ndots No ndots can be appropriately reduced to improve resolution efficiency Set to 3 by default (can be modified).
attempts No Number of resolution attempts Set to 2 by default (can be modified).
timeout No Timeout duration Set to 1 by default (can be modified).
forbiddenNamespace No List of Namespaces where Pod DNSConfig injection is prohibited Set to kube-system, cprom-system, cce-monitor by default (can be modified).

Deployment status

When the CCE NodeLocal DNSCache component is installed, the following objects will be deployed in the Kubernetes cluster:

Resource name Types
node-local-dns ServiceAccount
cce-node-local-dns-cce-reserved ConfigMap
node-local-dns ConfigMap
cce-node-local-dns ClusterRole
cce-node-local-dns ClusterRoleBinding
kube-dns-upstream Service
node-local-dns Service
node-local-dns-webhook Service
node-local-dns DaemonSet
cce-node-local-dns-webhook Deployment
pod-mutating.node-local-dns.cce.baidu.com MutatingWebhookConfiguration

Observability

You can monitor the operation of the CCE NodeLocal DNSCache component by scraping the metrics interface exposed by NodeLocal DNSCache.

  • Metric data in the cluster can be obtained using this method:
Shell
1curl http://<local ip>:9253/metrics # default: 169.254.20.10

Introduction to common NodeLocal DNSCache Metrics:

Metrics Meaning Types Unit
coredns_build_info CoreDNS version, revision and goversion used for building Gauge /
coredns_cache_entries Number of elements in the cache Gauge Item
coredns_cache_hits_total Number of cache hits Counter Time
coredns_cache_misses_total Number of cache misses Counter Time
coredns_cache_requests_total Number of cache requests Counter Time
coredns_dns_request_duration_seconds Histogram of time spent on each request per zone Histogram Second
coredns_dns_request_size_bytes EDNS0 UDP buffer size (64 K for TCP) Gauge Byte
coredns_dns_requests_total Number of DNS requests Counter Time
coredns_dns_response_size_bytes Size of returned responses Gauge Byte
coredns_dns_responses_total Number of response status codes Counter Time
coredns_plugin_enabled Whether a plugin is enabled per server and zone Gauge /
coredns_reload_failed_total Number of reload failures Counter Time

Add metric collection task for CCE NodeLocal DNSCache in CProm

Before configuring metric collection rules for Node-Problem-Detector in CProm, ensure the K8S Cluster CCE is associated with a CProm instance and a metric collection task is added. Refer to the operation guide:

  • Associate CProm Instance with K8S Cluster CCE
  • Add Collection Task in CProm Instance

Add the following metric collection task:

YAML
1job_name: 'localdns'
2scheme: http
3static_configs:
4- targets: [<local ip>:9253']

Version records

Version No. Cluster version compatibility Update time Update content Impact
1.1.0 CCE/v1.18/v1.20 2023.11.20 First release -
1.1.1 CCE/v1.18/v1.20 2023.12.21 Bug fix: Fix the issue of injecting search domain errors into DNSConfig -
1.1.2 CCE/v1.18/v1.20 2023.12.22 Bug fix: Fix Webhook interception rules -

Previous
CCE_Hybrid_Manager Description
Next
CCE Node Problem Detector Description