Manage BlazingDNS

Updated at: 2025-03-05 03:41

BlazingDNS provides DNS cache acceleration based on kernel programming technologies to greatly improve the stability and performance of DNS service discovery. This topic describes how to manage BlazingDNS.

Prerequisites

Usage notes

You cannot enable DNS cache acceleration for existing pods in ACK clusters.

Limits

  • You can install BlazingDNS only in ACK Serverless clusters to accelerate DNS resolution for applications deployed on elastic container instances.

  • BlazingDNS has the following limits:

    • BlazingDNS supports DNS queries against A, AAAA, and CNAME records.

    • BlazingDNS supports only UDP-based DNS queries.

    • BlazingDNS supports only DNS queries for which the responses are no larger than 256 bytes.

Introduction to BlazingDNS

BlazingDNS is a DNS caching program developed based on kernel programming technologies. It is intrusion-free, high-performance, and low-overheads. You can accelerate DNS resolution for application pods without the need to modify the DNS servers in the DNSConfig.

In the following figure, after BlazingDNS is enabled, DNS requests sent by elastic container instances are cached to accelerate DNS resolution. No additional configuration is needed.

image

Enable BlazingDNS

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, find the cluster that you want to manage and click its name. In the left-side pane, choose Operations > Add-ons.

  3. On the Add-ons page, click the Networking tab, find BlazingDNS, and then click Install in the BlazingDNS card. Follow the instructions to install BlazingDNS.

    Important
    • After BlazingDNS is installed, a configuration file named blazing-dns is created in the kube-system namespace. Do not modify or delete the configuration file.

    • After you install BlazingDNS, DNS cache acceleration is enabled for new pods created on elastic container instances. You can check the Boolean value of k8s.aliyun.com/dns-cache-enable in the Annotations section of a pod to determine whether DNS cache acceleration is enabled for the pod.

What to do next

Update BlazingDNS

On the Add-ons page, click the Networking tab, find BlazingDNS, and then click Upgrade in the BlazingDNS card. Follow the instructions to update the component. We recommend that you update BlazingDNS to experience the optimal DNS cache acceleration service.

Uninstall BlazingDNS

Note

Before you uninstall BlazingDNS, make sure that BlazingDNS is disabled for all pods that are running in the cluster.

  1. Run the following commands to check whether BlazingDNS is disabled for all running pods.

    • Query the names of the pods that have BlazingDNS enabled in the cluster.

      kubectl get pod -o=jsonpath='{.items[?(@.metadata.annotations.k8s\.aliyun\.com/dns-cache-enable=="true")].metadata.name}' -A
    • If the current node has jq installed, run the following command to print the namespaces and names of the pods:

      kubectl get pod -o=jsonpath='{.items[?(@.metadata.annotations.k8s\.aliyun\.com/dns-cache-enable=="true")]}' | jq -rc ".metadata.namespace,.metadata.name"
  2. Check whether no pod is returned.

    • If pods are returned, perform the following steps to handle the pods that have BlazingDNS enabled before you delete BlazingDNS.

      1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

      2. On the Clusters page, click the name of the one you want to change. In the left-side navigation pane, choose Configurations > ConfigMaps.

      3. On the ConfigMap page, select the kube-system namespace and click Edit in the Actions column of blazing-dns. In the panel that appears, set config to enabled: false.

      4. Delete and recreate the preceding pods, and then rerun the command until no pod is returned.

      5. On the Add-ons page, click the Networking tab, find BlazingDNS, and then click Uninstall in the BlazingDNS card. Follow the instructions to uninstall BlazingDNS.

    • If no pod is returned, go to the Add-ons page, click the Networking tab, find BlazingDNS, and then click Uninstall in the BlazingDNS card. Follow the instructions to uninstall BlazingDNS.

  • On this page (1, T)
  • Prerequisites
  • Usage notes
  • Limits
  • Introduction to BlazingDNS
  • Enable BlazingDNS
  • What to do next
  • Update BlazingDNS
  • Uninstall BlazingDNS
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare