Windows location for DNS root key?

Jeffrey Walton noloader at
Tue May 12 00:28:45 UTC 2020

On Mon, May 11, 2020 at 8:35 AM Rick van Rein via Unbound-users
<unbound-users at> wrote:
> We are porting a Linux application to Windows, and this uses Unbound for
> DNSSEC security.  On Linux, we have a well-defined location for the root
> key, namely /etc/unbound/root.key, but on Windows we are less lucky.
> What should we use, what do others do; is there a common place, possibly
> relative to the library, and will it upgrade automatically?

On Windows, the root key should probably go in the special folder
Common Application Data. A C/C++ program would use SHGetFolderPath
A C# program would use CommonApplicationData

Also see

More information about the Unbound-users mailing list