Skip to content

Commit

Permalink
fix(dns): disable new dns client by default
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits authored and kikito committed Aug 20, 2024
1 parent f208e05 commit 6e1fbd6
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

1 comment on commit 6e1fbd6

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:6e1fbd6774ce19226aa8113fbbab5b26b400254d
Artifacts available https://github.com/Kong/kong/actions/runs/10468005824

Please sign in to comment.