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

Manual changes to /etc/hosts are reverted on DHCP > Save Changes #1009

Open
bbecker-inlogik opened this issue Jul 29, 2024 · 2 comments
Open

Comments

@bbecker-inlogik
Copy link

Steps to reproduce issue:

  • manually edit the /etc/hosts file via ssh.
  • Via web front end Connection > DHCP > Save Changes
  • manual changes to /etc/hosts are reverted

The createHostCommands variable should be removed completely, since DHCP configuration no longer lives in /etc/hosts there is no need to revert this file to factory setting.

createHostCommands = [ "touch /etc/hosts", "rm /etc/hosts" ];

@lantis1008
Copy link
Contributor

Thanks for reporting, I will consider a fix.
We do place local host information in there intentionally so there is still a requirement.

@bbecker-inlogik
Copy link
Author

Perhaps rather than clearing the file, it could append the localhost lines only if they are are missing.

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

No branches or pull requests

2 participants