Skip to content

It may be better to use safe defaults #1330

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

Open
zbalkan opened this issue May 13, 2025 · 1 comment
Open

It may be better to use safe defaults #1330

zbalkan opened this issue May 13, 2025 · 1 comment

Comments

@zbalkan
Copy link
Contributor

zbalkan commented May 13, 2025

The power of defaults is a crucial part of user experience as it relies on the nature of human with status quo bias. People do not tend to change the defaults unless it is explicitly asked or it is to fix a problem.

_logFolder = "logs";

In this case, the default location for the logs are the same folder with the application. It's best for everyone to have the sane defaults like:

  • %PROGRAMDATA%\TechnitiumSoftware\DnsServer for Windows,
  • /var/log/ or /var/log/technitium for any other system.

It's a trivial change, so I can provide a patch if needed.

@ShreyasZare
Copy link
Member

Thanks for the post. The default path is set so that any file is read/written into the config folder so that the core DNS server works with all type of deployments like docker where only one volume is defined by default. This allows the app to become portable. Its kind of difficult to guess the correct type of deployment from code and set the default path based on it when starting for first time. Also, its would be challenging to change it now and cause issues when people upgrade their docker containers.

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