-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dns-client: if /etc/resolv.conf modifies, update the internal list of…
… resolvers (#291) * dns-client: if /etc/resolv.conf modifies, update the internal list of resolvers Only affects lwt and unix. Previously, when you started an application, /etc/resolv.conf was read once at startup. When you switch to a different network, and /etc/resolv.conf is updated by DHCP, this is not reflected in the dns-client. Now, the digest of /etc/resolv.conf is stored internally, and if it changes, it is parsed again. The lwt implementation needed to be modified slightly since connect_to_ns_via_tcp carried a nameserver list, and a different task may have been woken up. Now, there are two functions and it should play out nicely. Co-authored-by: Reynir Björnsson <[email protected]>
- Loading branch information
Showing
2 changed files
with
213 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters