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: use template rcode NOERROR to prevent timeouts #206

Merged
merged 3 commits into from
Oct 25, 2023
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
10 changes: 8 additions & 2 deletions config/charts/kube-system.coredns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ import { applyDefaultLabels } from '../util/labels.js';
* - `.` - everything else
*
* The internal cluster allows `ipv6` resolutions, while `.` prevents `AAAA` resolutions using
* `rewrite stop type AAAA A`
* ```
* template ANY AAAA {
* rcode NOERROR
* }
* ```
*
*/
export class CoreDns extends Chart {
Expand Down Expand Up @@ -51,7 +55,9 @@ cluster.local:53 {
log
errors
health
rewrite stop type AAAA A
template ANY AAAA {
rcode NOERROR
}
prometheus :9153
forward . /etc/resolv.conf
cache 30
Expand Down
5 changes: 5 additions & 0 deletions docs/dns.configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ file: index.mjs

```javascript
fetch('https://google.com').then((c) => console.log(c));

import * as dns from 'dns/promises'

await dns.resolve('google.com', 'A');
await dns.resolve('google.com', 'AAAA');
```

```bash
Expand Down
Loading