Skip to content

Commit

Permalink
update config example
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard committed Dec 18, 2024
1 parent 7c566dd commit 3968d21
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/collectors/collector_powerdns.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,39 @@ addCacheHitResponseAction(AllRule(), RemoteLogResponseAction(rl, nil, true, {ser

Example to enable logging in your **pdns-recursor**

Since version > 5

```yaml
recursor:
include_dir: /etc/powerdns/recursor.d
incoming:
listen:
- 0.0.0.0:53
- '[::]:53'
allow_from:
- 0.0.0.0/0
- ::/0
logging:
protobuf_servers:
- servers: [192.168.1.16:6000]
logQueries: true
logResponses: true
outgoing_protobuf_servers:
- servers: [192.168.1.16:6000]
logQueries: true
logResponses: true
dnstap_framestream_servers:
- servers: [192.168.1.16:6000]
logQueries: true
logResponses: true
```

Old configuration style

*/etc/pdns-recursor/recursor.conf*

```lua
Expand Down

0 comments on commit 3968d21

Please sign in to comment.