[GH-ISSUE #252] Support Windows /etc/hosts file when system configuration is used? #416

Closed
opened 2026-03-15 22:24:01 +03:00 by kerem · 0 comments
Owner

Originally created by @briansmith on GitHub (Oct 24, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/252

The /etc/hosts support was not added for Windows.

Windows has $SYSDIR/drivers/etc/hosts, where $SYSDIR is the path returned by GetSystemDirectory(). When using the system configuration on Windows, should Trust-DNS be reading this file and using its contents?

I don't need this functionality; I'm filing this for completeness's sake as I review the code.

Originally created by @briansmith on GitHub (Oct 24, 2017). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/252 The /etc/hosts support was not added for Windows. Windows has `$SYSDIR/drivers/etc/hosts`, where `$SYSDIR` is the path returned by `GetSystemDirectory()`. When using the system configuration on Windows, should Trust-DNS be reading this file and using its contents? I don't need this functionality; I'm filing this for completeness's sake as I review the code.
kerem 2026-03-15 22:24:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#416
No description provided.