Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent NM from handling DNS when network interfaces have DNS config #5846

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ani-sinha
Copy link
Contributor

@ani-sinha ani-sinha commented Oct 28, 2024

Proposed Commit Message

In the change under PR #5401, we use global DNS configuration as well as
DNS and search domain information from interface config and use it to populate
/etc/resolv.conf. Therefore, if either or both global DNS/search domain config
is present along with per-interface DNS/search domain information, we should add
a network manager configuration to prevent network manager from manipulating
/etc/resolv.conf.
This is in addition to what we already do when only global DNS data is
configured.

Fixes: 1b8030e0c7fd6 ("feat(sysconfig): Add DNS from interface config to resolv.conf (#5401))

Additional Context

Test Steps

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

In the change under PR canonical#5401, we use global DNS configuration as well as
DNS and search domain information from interface config and use it to populate
/etc/resolv.conf. Therefore, if either or both global DNS/search domain config
is present along with per-interface DNS/search domain information, we should add
a network manager configuration to prevent network manager from manipulating
/etc/resolv.conf.
This is in addition to what we already do when only global DNS data is
configured.

Fixes: 1b8030e ("feat(sysconfig): Add DNS from interface config to resolv.conf (canonical#5401))
Signed-off-by: Ani Sinha <[email protected]>
@ani-sinha ani-sinha changed the title Prevent NM from handling DNS when only network interfaces have DNS config Prevent NM from handling DNS when network interfaces have DNS config Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant