Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dns): disable new dns client by default #13514

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading