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

chore: v0.6.0 #59

Merged
merged 1 commit into from
Dec 20, 2024
Merged

chore: v0.6.0 #59

merged 1 commit into from
Dec 20, 2024

Conversation

SeverinAlexB
Copy link
Collaborator

Highlights

Query Rate Limiting

Added pkdns arguments to support rate limiting dns queries by IP address. This reduces the attack surface on the forward DNS and the DHT.

      --query-rate-limit <query-rate-limit>
          Maximum number of queries per second one IP address can make before it is rate limited. 0 is disabled. [default: 0]
      --query-rate-limit-burst <query-rate-limit-burst>
          Short term burst size of the query-rate-limit. 0 is disabled. [default: 0]
      --dht-rate-limit <dht-rate-limit>
          Maximum number of queries per second one IP address can make to the DHT before it is rate limited. 0 is disabled. [default: 5]
      --dht-rate-limit-burst <dht-rate-limit-burst>
          Short term burst size of the dht-rate-limit. 0 is disabled. [default: 25]

Queries to the DHT are now rate limited by default.

Simplified Publish Command

BREAKING: pkdns-cli publish only publishes the pkarr.zone once. The parameter --once has been removed. Use crontab to continuously publish the zone.

Improved TTL Caching

Pkarr zones are now cached dynamically depending on the configured TTL of the zone. Before, zones would only be cached for 60s. Use the new pkdns argument to configure min/max ttl values. Set the max to 0 for quick dev iterations.

      --min-ttl <min-ttl>
          Minimum number of seconds a value is cached for before being refreshed. [default: 60]
      --max-ttl <max-ttl>
          Maximum number of seconds before a cached value gets auto-refreshed. [default: 86400]

publickey command

Derive a public key from a seed with pkdns-cli publickey.

Use $ttl variable in pkarr.zone

Use the $ttl variable in the pkarr.zone to define cache times. You can also define ttls over individual records. Use the standard
dns zone format to set ttls.

Example:

$TTL 300
@                  IN	  A	    127.0.0.1
subdomain  86400   IN	  A	    127.0.0.1   

In this case, the default ttl is 300 (5min). subdomain has a custom ttl of 86400 (1 day).

Detailed Changes

Full Changelog: v0.5.4...v0.6.0-rc.4

@SeverinAlexB SeverinAlexB merged commit 308af63 into pubky:master Dec 20, 2024
@SeverinAlexB SeverinAlexB deleted the chore/v0.6.0 branch December 27, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant