From c7b4d76e0577367073af8ad25d413c4b38339d91 Mon Sep 17 00:00:00 2001 From: Xiaochen Wang Date: Mon, 19 Aug 2024 10:49:14 +0800 Subject: [PATCH] fix(dns): disable new dns client by default (cherry picked from commit 6e1fbd6774ce19226aa8113fbbab5b26b400254d) --- changelog/unreleased/kong/refactor_dns_client.yml | 2 +- kong.conf.default | 2 +- kong/templates/kong_defaults.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog/unreleased/kong/refactor_dns_client.yml b/changelog/unreleased/kong/refactor_dns_client.yml index cd8ee90d0f42..2ae5cdee48a0 100644 --- a/changelog/unreleased/kong/refactor_dns_client.yml +++ b/changelog/unreleased/kong/refactor_dns_client.yml @@ -1,5 +1,5 @@ message: > - Starting from this version, a new DNS client library has been implemented and added into Kong. The new DNS client library has the following changes + Starting from this version, a new DNS client library has been implemented and added into Kong, which is disabled by default. The new DNS client library has the following changes - Introduced global caching for DNS records across workers, significantly reducing the query load on DNS servers. - Introduced observable statistics for the new DNS client, and a new Status API `/status/dns` to retrieve them. - Simplified the logic and make it more standardized diff --git a/kong.conf.default b/kong.conf.default index 00201c158fc2..447efb3c0a67 100644 --- a/kong.conf.default +++ b/kong.conf.default @@ -1542,7 +1542,7 @@ # It provides observable statistics, you can retrieve them through the Admin API # `/status/dns`. -#new_dns_client = on # Enable the new DNS resolver +#new_dns_client = off # Enable or disable the new DNS resolver #resolver_address = # Comma-separated list of nameservers, each diff --git a/kong/templates/kong_defaults.lua b/kong/templates/kong_defaults.lua index a5e71c627d96..f2cc4e0f13a4 100644 --- a/kong/templates/kong_defaults.lua +++ b/kong/templates/kong_defaults.lua @@ -170,7 +170,7 @@ dns_not_found_ttl = 30 dns_error_ttl = 1 dns_no_sync = off -new_dns_client = on +new_dns_client = off resolver_address = NONE resolver_hosts_file = /etc/hosts