[Pdns-users] yaml format with allow_from_file

Ronny Wagner r.wagner at licoho.de
Sun Jan 5 08:26:51 UTC 2025


Good morning,

I am currently converting pdns-recursor 5.1.3 from conf to yml and now have a problem understanding the content of the allow_from_file function.

Old Format:
127.0.0.0/8
::1/128
fe80::/10
single_IPV4
single_IPV6

New Format:
- 127.0.0.0/8
- ::1/128
- fe80::/10
- single_IPV4
- single_IPV6

Output from rec_control show-yaml:
# Converted /etc/powerdns/allow_ip_nets to YAML format for incoming.allow_from_file: 
- '- 127.0.0.0/8'
- '- ::1/128'
- '- fe80::/10'
- '- single_IPV4'
- '- single_IPV6'
# Validation result: allow_from_file: value `- 127.0.0.0/8' is not a subnet or IP
# End of converted /etc/powerdns/allow_ip_nets

Why is the IP network 127.0.0.0/8 not recognized correctly? Where did I make my mistake?

Thank you very much for help.

Mit freundlichen Grüßen/Best Regards
Ronny

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7480 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20250105/f9e33abf/attachment.bin>


More information about the Pdns-users mailing list