Skip to content

Commit

Permalink
docs: fix typo (#14565)
Browse files Browse the repository at this point in the history
  • Loading branch information
FaSe22 authored Oct 14, 2024
1 parent a5006a1 commit 6dbd679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api/dns.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ In Bun v1.1.9, we added support for DNS caching. This cache makes repeated conne

At the time of writing, we cache up to 255 entries for a maximum of 30 seconds (each). If any connections to a host fail, we remove the entry from the cache. When multiple connections are made to the same host simultaneously, DNS lookups are deduplicated to avoid making multiple requests for the same host.

This cache is automatically used by;
This cache is automatically used by:

- `bun install`
- `fetch()`
Expand Down Expand Up @@ -99,7 +99,7 @@ console.log(stats);

### Configuring DNS cache TTL

Bun defaults to 30 seconds for the TTL of DNS cache entries. To change this, you can set the envionrment variable `$BUN_CONFIG_DNS_TIME_TO_LIVE_SECONDS`. For example, to set the TTL to 5 seconds:
Bun defaults to 30 seconds for the TTL of DNS cache entries. To change this, you can set the environment variable `$BUN_CONFIG_DNS_TIME_TO_LIVE_SECONDS`. For example, to set the TTL to 5 seconds:

```sh
BUN_CONFIG_DNS_TIME_TO_LIVE_SECONDS=5 bun run my-script.ts
Expand Down

0 comments on commit 6dbd679

Please sign in to comment.