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

Use XAPI to edit DNS entries within xsconsole #2

Merged

Conversation

benjamreis
Copy link
Contributor

Signed-off-by: BenjiReis benjamin.reis@vates.fr

@stormi
Copy link
Contributor

stormi commented Jun 24, 2021

Please update the commit message with an explanation of why this was needed and what you changed.

Quoting https://www.freecodecamp.org/news/writing-good-commit-messages-a-practical-guide/

  • Use the body to explain what changes you have made and why you made them.
  • Do not assume the reviewer understands what the original problem was, ensure you add it.
  • Do not think your code is self-explanatory

Instead of directly editing `/etc/resolv.conf`, use XAPI to edit it.
This fixes an issue where the changes weren't retained after a reboot because XAPI
would override the changes with what was stored in its DB. Using XAPI to edit the DNS entries
also applies the changes in XAPI's DB and so changes are kept after reboots.

Signed-off-by: BenjiReis <benjamin.reis@vates.fr>
@benjamreis benjamreis force-pushed the fix-DNS-storage-entries-by-xsconsole branch from 20c038e to a14ee37 Compare June 24, 2021 10:13
@idruzhinin
Copy link
Collaborator

is #4 a pre-requisite for this change? Is there any particular order we should merge those?

@idruzhinin idruzhinin self-requested a review June 24, 2021 22:19
@benjamreis
Copy link
Contributor Author

Hi! No, no particular order, all PRs are independent :)

@idruzhinin idruzhinin merged commit 5a623bc into xapi-project:master Jun 25, 2021
@benjamreis benjamreis deleted the fix-DNS-storage-entries-by-xsconsole branch May 4, 2022 07:07
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.

None yet

4 participants