Debian: resolveconf vs. openresolv (peer DNS doesn't work) #654

Closed
opened 2025-11-20 05:15:25 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @bashgeek on GitHub (Feb 25, 2024).

I was wondering why the DNS resolution of my peers weren't working on our Debian servers, because everything seemed to have been set up correctly.

After inspecting the client log this appears:
apply config: applying resolvconf configuration for wt0 interface, error: exit status 99

Which isn't very verbose about what the issue is. After inspecting the code-base I found that NetBird relies on having openresolv installed, rather than resolveconf. Especially the resolveconf version that Debian uses seems to cause quite some issues, but you already know that judging by the comment in the code:
// openresolv only, debian resolvconf doesn't support "-f"

However, that wasn't clear to me, since it's not mentioned in the docs or anywhere else, so I'm guessing quite some people having this issue on Debian.

After installing openresolv (and hence removing resolvconf) everything magically started to work.

I'd suggest the following:

  • For the Debian packages, set the openresolv package to required dependency
  • Mention it in the docs
  • Enhance the error output in this case and give a hint about the openresolv dependency here

Hope this helps!

Thanks for your work!

Cheers,
Daniel

Originally created by @bashgeek on GitHub (Feb 25, 2024). I was wondering why the DNS resolution of my peers weren't working on our Debian servers, because everything seemed to have been set up correctly. After inspecting the client log this appears: `apply config: applying resolvconf configuration for wt0 interface, error: exit status 99` Which isn't very verbose about what the issue is. After inspecting the code-base I found that NetBird relies on having openresolv installed, rather than resolveconf. Especially the resolveconf version that Debian uses seems to cause quite some issues, but you already know that judging by the comment in the code: `// openresolv only, debian resolvconf doesn't support "-f"` However, that wasn't clear to me, since it's not mentioned in the docs or anywhere else, so I'm guessing quite some people having this issue on Debian. After installing openresolv (and hence removing resolvconf) everything magically started to work. I'd suggest the following: - For the Debian packages, set the openresolv package to required dependency - Mention it in the docs - Enhance the error output in this case and give a hint about the openresolv dependency here Hope this helps! Thanks for your work! Cheers, Daniel
saavagebueno added the triage-needed label 2025-11-20 05:15:25 -05:00
Author
Owner

@adasauce commented on GitHub (Mar 4, 2024):

thanks for reporting this @bashgeek , I was pulling my hair out a bit trying to figure out why DNS wasn't working properly.

I've baked openresolv into my debian images now 👍🏼

@adasauce commented on GitHub (Mar 4, 2024): thanks for reporting this @bashgeek , I was pulling my hair out a bit trying to figure out why DNS wasn't working properly. I've baked openresolv into my debian images now 👍🏼
Author
Owner

@viiiwonder commented on GitHub (May 6, 2024):

Came to say thanks for this report/information. Was able to resolve my DNS issue on Debian because of this.

@viiiwonder commented on GitHub (May 6, 2024): Came to say thanks for this report/information. Was able to resolve my DNS issue on Debian because of this.
Author
Owner

@lixmal commented on GitHub (Feb 21, 2025):

debian resolvconf is now supported

@lixmal commented on GitHub (Feb 21, 2025): debian resolvconf is now supported
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#654