Skip to content

Commit

Permalink
fix(dns): disable new dns client by default
Browse files Browse the repository at this point in the history
(cherry picked from commit 6e1fbd6)
  • Loading branch information
chobits authored and github-actions[bot] committed Aug 20, 2024
1 parent bfb48ee commit c7b4d76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion changelog/unreleased/kong/refactor_dns_client.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion kong.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <name servers parsed from resolv.conf>
# Comma-separated list of nameservers, each
Expand Down
2 changes: 1 addition & 1 deletion kong/templates/kong_defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7b4d76

Please sign in to comment.