Giter Club home page Giter Club logo

Comments (6)

pschiffe avatar pschiffe commented on August 16, 2024 1

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.

hpcmtint avatar hpcmtint commented on August 16, 2024

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.

pschiffe avatar pschiffe commented on August 16, 2024

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.

hpcmtint avatar hpcmtint commented on August 16, 2024

from docker-pdns.

hpcmtint avatar hpcmtint commented on August 16, 2024
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.

pschiffe avatar pschiffe commented on August 16, 2024

Glad you were able to make it work.

from docker-pdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.