Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update unbound and pdns-recursor version in CI #765

Merged
merged 6 commits into from
Sep 8, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/testing-dnstap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
go-version: [ '1.22' ]
unbound: [ '1.18.0', '1.19.3' ]
unbound: [ '1.19.3', '1.20.0' ]

mode: [ 'tcp' ]

Expand Down
35 changes: 34 additions & 1 deletion .github/workflows/testing-powerdns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
strategy:
matrix:
go-version: [ '1.22' ]
recursor: [ '48', '49' ]
recursor: [ '49', '50' ]

steps:
- uses: actions/checkout@v4
Expand All @@ -82,6 +82,39 @@ jobs:
sudo docker run -d --network="host" --name=recursor --volume=$PWD/tests/testsdata/powerdns/pdns_recursor.lua:/etc/powerdns/recursor.lua:z --volume=$PWD/tests/testsdata/powerdns/pdns_recursor.conf:/etc/powerdns/recursor.conf:z powerdns/pdns-recursor-${{ matrix.recursor }}
until (dig -p 5553 www.github.com @127.0.0.1 | grep NOERROR); do sleep 5.0; done

- name: Test send query
run: |
sudo python3 -m pip install dnspython
sudo -E python3 -m unittest tests.dnsquery_powerdns -v

recursor5:
runs-on: ubuntu-22.04

strategy:
matrix:
go-version: [ '1.22' ]
recursor: [ '51' ]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/setup-python@v5
with:
python-version: 3.12

- name: build binary
run: |
go mod edit -go=${{ matrix.go-version }}
go mod tidy
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o go-dnscollector *.go

- name: Deploy recursor 5.x docker image
run: |
sudo docker run -d --network="host" --name=recursor --volume=$PWD/tests/testsdata/powerdns/pdns_recursor.yml:/etc/powerdns/recursor.yml:z powerdns/pdns-recursor-${{ matrix.recursor }}
until (dig -p 5553 www.github.com @127.0.0.1 | grep NOERROR); do sleep 5.0; done

- name: Test send query
run: |
sudo python3 -m pip install dnspython
Expand Down
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,17 @@ The [`_integration`](./docs/_integration) folder contains DNS-collector `configu
- [Prometheus](./docs/_integration/prometheus/README.md)
- [Loki](./docs/_integration/loki/README.md)

## Telemetry
## DNS Telemetry

`DNS-collector` provides telemetry capabilities with the Prometheus logger,
you can easily monitor key performance indicators and detect anomalies in real-time.

![dashboard](docs/_images/dashboard_prometheus.png)

## Performance

Tuning may be necessary to deal with a large traffic loads.
Please refer to the [performance tuning](./docs/performance.md) guide if needed.

Performance metrics are available to evaluate the efficiency of your pipelines. These metrics allow you to track:
- The number of incoming and outgoing packets processed by each worker
Expand All @@ -135,11 +145,6 @@ A [build-in](./docs/dashboards/grafana_exporter.json) dashboard is available for

![dashboard](docs/_images/dashboard_global.png)

## Performance

Tuning may be necessary to deal with a large traffic loads.
Please refer to the [performance tuning](./docs/performance.md) guide if needed.

## Contributing

See the [development guide](./docs/development.md) for more information on how to build it yourself.
Binary file modified docs/_images/config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions tests/testsdata/powerdns/pdns_recursor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
recursor:
include_dir: /etc/powerdns/recursor.d

incoming:
allow_from: [0.0.0.0/0]
listen:
- 0.0.0.0:5553

logging:
protobuf_servers:
- servers: [127.0.0.1:6001]
logQueries: true
logResponses: true
exportTypes: [A, AAAA, CNAME, MX, NS, PTR, SPF, SRV, TXT]
Loading