[PR #2195] [MERGED] Set EDNS0 when no extra options are set by the dns client #14790

Closed
opened 2026-08-05 03:06:19 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/2195
Author: @mlsmaycon
Created: 6/25/2024
Status: Merged
Merged: 6/25/2024
Merged by: @mlsmaycon

Base: mainHead: fix/dns-response-on-large-records


📝 Commits (3)

  • 938a304 Truncate DNS messages to the max 512 buffer size
  • e99c4e6 set the EDNS0 buffer size to 4096 bytes
  • 704dc00 set EDNS0 only there is no extra options

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 client/internal/dns/upstream.go (+4 -0)

📄 Description

Describe your changes

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/2195 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 6/25/2024 **Status:** ✅ Merged **Merged:** 6/25/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `fix/dns-response-on-large-records` --- ### 📝 Commits (3) - [`938a304`](https://github.com/netbirdio/netbird/commit/938a30456a41754002b55d442139c39a2c672310) Truncate DNS messages to the max 512 buffer size - [`e99c4e6`](https://github.com/netbirdio/netbird/commit/e99c4e6d24bcfa0c033200ce968cab8a7971ab42) set the EDNS0 buffer size to 4096 bytes - [`704dc00`](https://github.com/netbirdio/netbird/commit/704dc00314dd847015efb952108ba0daa61283a9) set EDNS0 only there is no extra options ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/dns/upstream.go` (+4 -0) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:06:19 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14790