Comments (6)
Hi @hpcmtint, I recommend to not bind mount the config file - it's a template that can be completely configured via env vars, source is here - https://github.com/pschiffe/docker-pdns/blob/master/pdns-recursor/recursor.conf.tpl
To configure the requested settings, use env vars like this:
environment:
- PDNS_auth_zones=globe.local
- PDNS_forward_zones=.=172.30.110.5,172.30.115.2
from docker-pdns.
Hi Peter,
thanks for the quick respond. I've added as advised - seeing errors and the container wont start/.
services:
pdns-recursor-mysql:
image: pschiffe/pdns-recursor:${RECURSOR_TAG:-latest}
networks:
- pdns-mysql
environment:
- PDNS_forward_zones=.=172.30.110.5,172.30.115.2
volumes:
- /etc/localtime:/etc/localtime:ro
ulimits:
nofile:
soft: 5000
hard: 5000
Feb 06 17:11:45 PowerDNS Recursor 4.9.2 (C) 2001-2022 PowerDNS.COM BV
Feb 06 17:11:45 Using 64-bits mode. Built using gcc 13.2.1 20231011 (Red Hat 13.2.1-4).
Feb 06 17:11:45 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Feb 06 17:11:45 msg="Enabling IPv4 transport for outgoing queries" subsystem="config" level="0" prio="Notice" tid="0" ts="1707239505.943"
Feb 06 17:11:45 msg="NOT using IPv6 for outgoing queries - add an IPv6 address (like '::') to query-local-address to enable" subsystem="config" level="0" prio="Warning" tid="0" ts="1707239505.943"
Feb 06 17:11:45 msg="Setting access control" subsystem="config" level="0" prio="Info" tid="0" ts="1707239505.946" acl="allow-from" addresses="0.0.0.0/0"
Feb 06 17:11:45 msg="Will not send queries to" subsystem="config" level="0" prio="Notice" tid="0" ts="1707239505.958" addresses="127.0.0.0/8 10.0.0.0/8 100.64.0.0/10 169.254.0.0/16 192.168.0.0/16 172.16.0.0/12 ::1/128 fc00::/7 fe80::/10 0.0.0.0/8 192.0.0.0/24 192.0.2.0/24 198.51.100.0/24 203.0.113.0/24 240.0.0.0/4 ::/96 ::ffff:0:0/96 100::/64 2001:db8::/32 0.0.0.0 ::"
Feb 06 17:11:45 msg="Redirecting queries" subsystem="config" level="0" prio="Info" tid="0" ts="1707239505.959" addresses="172.30.110.5:53" recursion="0" zone="."
Feb 06 17:11:45 msg="Fatal error" error="Error parsing '172.30.115.2', missing =" subsystem="config" level="0" prio="Critical" tid="0" ts="1707239505.959" exception="PDNSException"
Feb 06 17:11:52 PowerDNS Recursor 4.9.2 (C) 2001-2022 PowerDNS.COM BV
Feb 06 17:11:52 Using 64-bits mode. Built using gcc 13.2.1 20231011 (Red Hat 13.2.1-4).
Feb 06 17:11:52 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Feb 06 17:11:52 msg="Enabling IPv4 transport for outgoing queries" subsystem="config" level="0" prio="Notice" tid="0" ts="1707239512.304"
Feb 06 17:11:52 msg="NOT using IPv6 for outgoing queries - add an IPv6 address (like '::') to query-local-address to enable" subsystem="config" level="0" prio="Warning" tid="0" ts="1707239512.304"
Feb 06 17:11:52 msg="Setting access control" subsystem="config" level="0" prio="Info" tid="0" ts="1707239512.309" acl="allow-from" addresses="0.0.0.0/0"
Feb 06 17:11:52 msg="Will not send queries to" subsystem="config" level="0" prio="Notice" tid="0" ts="1707239512.321" addresses="127.0.0.0/8 10.0.0.0/8 100.64.0.0/10 169.254.0.0/16 192.168.0.0/16 172.16.0.0/12 ::1/128 fc00::/7 fe80::/10 0.0.0.0/8 192.0.0.0/24 192.0.2.0/24 198.51.100.0/24 203.0.113.0/24 240.0.0.0/4 ::/96 ::ffff:0:0/96 100::/64 2001:db8::/32 0.0.0.0 ::"
Feb 06 17:11:52 msg="Redirecting queries" subsystem="config" level="0" prio="Info" tid="0" ts="1707239512.322" addresses="172.30.110.5:53" recursion="0" zone="."
from docker-pdns.
The error is Feb 06 17:11:45 msg="Fatal error" error="Error parsing '172.30.115.2', missing =" subsystem="config" level="0" prio="Critical" tid="0" ts="1707239505.959" exception="PDNSException"
I'm not sure how docker-compose handles that equal sign, maybe try with quotes?
environment:
- PDNS_forward_zones=".=172.30.110.5,172.30.115.2"
from docker-pdns.
from docker-pdns.
working now
pdns-recursor-mysql:
image: pschiffe/pdns-recursor:${RECURSOR_TAG:-latest}
networks:
- pdns-mysql
ports:
- "53:53"
- "53:53/udp"
environment:
PDNS_forward_zones: "globe.local=172.22.0.20,dmz.globe.local=172.22.0.20"
PDNS_forward_zones_recurse: ".=172.30.110.5"
volumes:
- /etc/localtime:/etc/localtime:ro
ulimits:
nofile:
soft: 5000
hard: 5000
from docker-pdns.
Glad you were able to make it work.
from docker-pdns.
Related Issues (20)
- Versioning should follow PDNS versioning... HOT 1
- pdns-admin-base-ngoduykhanh vs PyYAML-5.4 HOT 1
- Version 4.8 support ? HOT 3
- Can't forward a zone HOT 7
- dns port (53) HOT 1
- `pschiffe/pdns-admin` requires CPU with `x86_64-v2` support unlike the rest. HOT 4
- Pdns Webserver is not accepting request from outside docker HOT 2
- Configuration problem HOT 8
- Healthcheck curl isn't effective and cause unhealthy container HOT 3
- pdns new setup HOT 3
- Rootless run HOT 19
- Looking for a installation guide HOT 2
- master slave sync issue? HOT 5
- PowerDNS-Admin: non rr_set events in Zone Changelog HOT 1
- Hosting backend does not support editing records. In which of the three services and which option do i use to fix this? HOT 21
- Problem with replicate of database HOT 2
- Recursor 4.9 with pod security context failes to write the config file. HOT 7
- Can't connect to db(at least pgsql and admin image) HOT 3
- powerdns-admin 0.4.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-pdns.