-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preflight-linux: Add logic to check if /etc/resolv.conf managed by sy…
…stemd-resolved Current logic checks if systemd-resolved service is running and add the dispatcher file to network manager config which uses `systemd-resolve` to update the domain and dns for `crc` interface. But it is observed that the dispatcher is called when the NM interface changes state, but then the resolvectl call it contains has no effect on DNS resolution as systemd-resolved does not manage /etc/resolv.conf. This PR add logic to check if `/etc/resolv.conf` actually managed by systemd-resolved and if not then use `dnsmasq` configuration which works as expected.
- Loading branch information
1 parent
3956e85
commit 279f144
Showing
1 changed file
with
15 additions
and
0 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