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

Fix parsing issues regarding update intervals #49

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ steps:
- git checkout $(git describe --tags --abbrev=0)
- sed -i "s|loadbalance:loadbalance|ads:ads\\\\nloadbalance:loadbalance|g" plugin.cfg
- ln -s /go/src/github.com/c-mueller/ads/ /go/src/github.com/coredns/coredns/plugin/ads
- go get golang.org/x/net/context
- go get golang.org/x/net/idna
- make
- ./coredns -plugins
- mkdir -p /go/src/github.com/c-mueller/ads/binaries
Expand Down Expand Up @@ -112,4 +114,4 @@ steps:

---
kind: signature
hmac: 18133e199d1805cb81c7f014786ddbb5ab3f44254f4f26f9d41bb12c5198e8d0
hmac: d81e0a07677be692db9af2a7d0f59013a513bbd5dd3bccae2f38649241fb7ce0
5 changes: 4 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ Some Examples:
- `target-ipv6 <IPv6 IP>` defines the target IPv6 address to which blocked domains should resolve to if a AAAA record is requested
- `disable-auto-update` Turns off the automatic update of the blocklists every 24h (can be changed)
- `log` Print a message every time a request gets blocked
- `auto-update-interval <INTERVAL>` Allows the modification of the interval between blocklist updates
- `auto-update-interval <INTERVAL>` Allows the modification of the interval between http blocklist updates
- This operation uses Golangs `time.ParseDuration()` function in order to parse the duration.
Please ensure the specified duration can be parsed by this operation. Please refer to [here](https://golang.org/pkg/time/#ParseDuration).
- This gets ignored if the automatic blocklist updates have been disabled
- The default value is 24 hours
- `file-auto-update-interval` Just like `auto-update-interval` just for lists in the local file system
- The default value is 1 minute
- `list-store <FILEPATH FOR PERSISTED LISTS>` This option enables persisting of the HTTP lists
to prevent a automatic redownload everytime CoreDNS restarts. The lists get persisted everytime a update get performed.
- If autoupdates have been turned off the list will be reloaded every time the application launches.
Expand Down
20 changes: 8 additions & 12 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,14 @@ go 1.13

require (
github.com/Flaque/filet v0.0.0-20190209224823-fc4d33cfcf93
github.com/caddyserver/caddy v1.0.5 // indirect
github.com/coredns/caddy v1.1.0
github.com/coredns/coredns v1.8.0
github.com/go-sql-driver/mysql v1.5.0 // indirect
github.com/miekg/dns v1.1.35
github.com/prometheus/client_golang v1.8.0
github.com/prometheus/common v0.15.0 // indirect
github.com/coredns/coredns v1.8.3
github.com/miekg/dns v1.1.42
github.com/prometheus/client_golang v1.10.0
github.com/prometheus/common v0.24.0 // indirect
github.com/stretchr/testify v1.6.1
golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 // indirect
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11
golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e // indirect
golang.org/x/text v0.3.4 // indirect
google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d // indirect
google.golang.org/grpc v1.34.0 // indirect
golang.org/x/net v0.0.0-20210510120150-4163338589ed
golang.org/x/sys v0.0.0-20210511113859-b0526f3d8744 // indirect
google.golang.org/genproto v0.0.0-20210510173355-fb37daa5cd7a // indirect
google.golang.org/grpc v1.37.1 // indirect
)
Loading