This repository was archived by the owner on Aug 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
This repository was archived by the owner on Aug 2, 2021. It is now read-only.
Blocklists not updating when using reload #47
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Hi there,
I have noticed a problem when using https://coredns.io/plugins/reload/.
It seems that HTTP/S lists are not being updated on a reload.
I dynamically inject lists into the Corefile, and lists seem to only become active on a restart, not a reload.
Maybe [INFO] plugin/ads: [File Update] Loaded 0 entries into Blacklist and 0 entries into whitelist is related to this?
Let me know how I can help out to debug/fix this :)
Config
. {
reload
prometheus 0.0.0.0:9153
ads {
blacklist https://blocklistproject.github.io/List/ads.txt
blacklist https://blocklistproject.github.io/Lists/abuse.txt
blacklist https://blocklistproject.github.io/Lists/crypto.txt
blacklist https://blocklistproject.github.io/Lists/drugs.txt
blacklist https://blocklistproject.github.io/Lists/fraud.txt
blacklist https://blocklistproject.github.io/Lists/gambling.txt
blacklist https://blocklistproject.github.io/Lists/malware.txt
blacklist https://blocklistproject.github.io/Lists/phishing.txt
blacklist https://blocklistproject.github.io/Lists/porn.txt
blacklist https://blocklistproject.github.io/Lists/ransomware.txt
blacklist https://blocklistproject.github.io/Lists/redirect.txt
blacklist https://blocklistproject.github.io/Lists/scam.txt
blacklist https://blocklistproject.github.io/Lists/tiktok.txt
blacklist https://blocklistproject.github.io/Lists/tracking.txt
list-store /etc/coredns/blocklists
default-lists
target 127.0.0.1
target-ipv6 ::1
}
forward . tls://1.1.1.1 {
except fritz.box home lan local
tls_servername cloudflare-dns.com
health_check 5s
}
cache 30
}
Logs
[INFO] plugin/ads: Initializing CoreDNS 'ads' plugin. Version 0.2.5
[INFO] plugin/ads: Initializing CoreDNS 'ads' list update routines...
.:53
[INFO] plugin/reload: Running configuration MD5 = e60acf6ca0a2a149cfee6c1356874087
CoreDNS-1.8.3
linux/amd64, go1.15.8, 4293992b-dirty
[INFO] plugin/ads: Loaded Whitelist (HTTP) Length: 0
[INFO] plugin/ads: Loaded Blacklist (HTTP) Length: 2990552
[INFO] plugin/ads: Updating lists from HTTP URLs...
[INFO] plugin/ads: Scheduled next update in 23h53m16.626635257s
[INFO] plugin/ads: Updating lists from Local files...
[INFO] plugin/ads: [File Update] Loaded 0 entries into Blacklist and 0 entries into whitelist
[INFO] plugin/ads: Updating lists from Local files...
[INFO] plugin/ads: [File Update] Loaded 0 entries into Blacklist and 0 entries into whitelist
[INFO] plugin/ads: Updating lists from Local files...
[INFO] plugin/ads: [File Update] Loaded 0 entries into Blacklist and 0 entries into whitelist
[INFO] plugin/ads: Updating lists from Local files...
[INFO] plugin/ads: [File Update] Loaded 0 entries into Blacklist and 0 entries into whitelist
[INFO] plugin/ads: Updating lists from Local files...
[INFO] plugin/ads: [File Update] Loaded 0 entries into Blacklist and 0 entries into whitelist
----->> Blocklist gets removed from Corefile here!
[INFO] Reloading
[INFO] plugin/ads: Initializing CoreDNS 'ads' plugin. Version 0.2.5
[INFO] plugin/reload: Running configuration MD5 = 988a0e01e30fe01dfa814abd9f642fed
[INFO] Reloading complete
[INFO] plugin/ads: Updating lists from Local files...
[INFO] plugin/ads: [File Update] Loaded 0 entries into Blacklist and 0 entries into whitelist
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed