1
0
mirror of https://github.com/netbirdio/netbird.git synced 2025-06-20 17:58:02 +02:00

2 Commits

Author SHA1 Message Date
Zoltan Papp
a2f2a6e21a
Fix/resolv parser ()
fix an issue In case if the original resolv.conf file is empty, then it can cause a nil pointer
2024-02-02 17:54:33 +01:00
Zoltan Papp
4771fed64f
Support disabled resolved stub server mode ()
In the case of disabled stub listeren the list of name servers is unordered. The solution is to configure the resolv.conf file directly instead of dbus API.
Because third-party services also can manipulate the DNS settings the agent watch the resolv.conf file and keep it up to date.

- apply file type DNS manager if in the name server list does not exist the 127.0.0.53 address
- watching the resolv.conf file with inotify service and overwrite all the time if the configuration has changed and it invalid
- fix resolv.conf generation algorithm
2024-01-24 16:47:26 +01:00