Fix Unbound run loop logic

- Plain DNS is used only for the first resolving of github.com to obtain block lists and crypto files required by Unbound
- DNS over TLS is used at all time by the system and the Go program thereafter, even between periodic restarts
- Downtime during a periodic update is < 1 second
- On an Unbound start or unexpected exit error, the container falls back on the unencrypted version of the DNS in order to try restarting Unbound
This commit is contained in:
Quentin McGaw
2020-05-07 12:56:49 +00:00
parent d12668d57f
commit 0dc400b540
2 changed files with 62 additions and 43 deletions

View File

@@ -2,9 +2,9 @@ package constants
const (
// Announcement is a message announcement
Announcement = "New HTTP control server, see https://github.com/qdm12/private-internet-access-docker#http-control-server"
Announcement = "Auto update of DNS over TLS block lists and crypto files"
// AnnouncementExpiration is the expiration date of the announcement in format yyyy-mm-dd
AnnouncementExpiration = "2020-05-20"
AnnouncementExpiration = "2020-05-28"
)
const (