Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Implement dynamic updating of manually defined rules #17

Closed
c-mueller opened this issue Apr 20, 2019 · 0 comments
Closed

Implement dynamic updating of manually defined rules #17

c-mueller opened this issue Apr 20, 2019 · 0 comments
Labels
enhancement New feature or request feature

Comments

@c-mueller
Copy link
Owner

Currently whitelist and blacklist rules can only be defined within the corefile. In order to change them CoreDNS has to get restarted. In order to allow a simple method to reconfigure rules dynamically the following feature should be implemented:

Rule can be defined in a sepaerate file (or maybe multiple ones) this file gets reloaded every 5 seconds or maybe through a filesystem hook (on change). The idea of this should be simmilar to the reloading mechanism of the hosts plugin.

For syntax i think a ignore file like syntax is a good approach (excluding wildcards)
A rulefile could look like this:

# A comment
!google.com # Whitelist google.com
my-domain.com # Blacklist my-domain.com
!<REGEX> # Whitelist a regex
<REGEX> # Blacklist a regex
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request feature
Projects
None yet
Development

No branches or pull requests

1 participant