DnsServer icon indicating copy to clipboard operation
DnsServer copied to clipboard

It may be better to use safe defaults

Open zbalkan opened this issue 8 months ago • 3 comments

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.

https://github.com/TechnitiumSoftware/DnsServer/blob/3a7636ac3b1c221521f4031bb185277bbc85f068/DnsServerCore/LogManager.cs#L411

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.

zbalkan avatar May 13 '25 10:05 zbalkan

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.

ShreyasZare avatar May 15 '25 12:05 ShreyasZare

These are legitimate concerns. Would it be okay if we out a note to somewhere in documentation? People tend to stick with the defaults. So, explicitly providing guidance in docs would be a wise choice.

zbalkan avatar Jun 04 '25 20:06 zbalkan

There is no documentation available except for the basic one provided in the GUI. So I guess adding it there is the only option right now.

ShreyasZare avatar Jun 05 '25 08:06 ShreyasZare