netbird icon indicating copy to clipboard operation
netbird copied to clipboard

[client] Always register NetBird with plain Linux DNS and use original servers as upstream

Open lixmal opened this issue 6 months ago • 1 comments

Describe your changes

  • Removes the restriction that only all-domains resolvers can be registered on Linux with resolvconf and file managers
  • Registers NetBird as the sole nameserver
  • Registers original nameservers as upstream with low priority: NetBird-assigned "all domains" resolvers can take precedence
  • Replace DNS-related server IP strings with netip.Addr
  • Use resolvconf as a fallback instead of openresolv
  • Return RcodeRefused if no handler was found in the chain

Issue ticket number and link

Stack

Checklist

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

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

lixmal avatar Jun 12 '25 17:06 lixmal

Please modity this by permit sysadmin to override it. It should cause issues on some scenarios.

buzzzo avatar Jul 30 '25 08:07 buzzzo