Skip to content

feat(server): add configurable DNS response TTL#59

Open
ebpfx wants to merge 1 commit intonet2share:mainfrom
ebpfx:ttl
Open

feat(server): add configurable DNS response TTL#59
ebpfx wants to merge 1 commit intonet2share:mainfrom
ebpfx:ttl

Conversation

@ebpfx
Copy link
Copy Markdown
Contributor

@ebpfx ebpfx commented Mar 30, 2026

Summary

  • add a -ttl flag to configure the TTL used for DNS answer records on the server
  • keep the default TTL at 60 seconds to preserve current behavior
  • validate the flag value and only allow 0 to 7200 seconds
  • reject invalid TTL values at startup with a clear error message

Why

The server TTL should be configurable without requiring a code change. Keeping the default at 60 avoids changing existing deployments, while the 2 hour maximum prevents obviously excessive TTL values.

Files

  • vaydns-server/main.go

@ebpfx ebpfx changed the title feat(server): add configurable DNS response TTL flag with validation feat(server): add configurable DNS response TTL Mar 30, 2026
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