Using LetsEncrypt Boulder as a DNS Server












0














I have a local docker-compose setup in which i am testing some HTTPS requirements. To setup the same, LetsEncrypt Boulder Docker image was used as a local CA. I have tested CertBot with the same and I am able to generate certificates.



In addition, traefik is being used as a reverse proxy system which tries to verify the HTTPS TXT, AAAA, etc on the DNS server.



I need to know if i can use Boulder as a local DNS server and if yes then if there is any documentation on the same.



Also I am currently using DNSMASQ as a local DNS server. is there any way i can update the TXT values and all in DNSMASQ on run time..?



Thanks in advance










share|improve this question



























    0














    I have a local docker-compose setup in which i am testing some HTTPS requirements. To setup the same, LetsEncrypt Boulder Docker image was used as a local CA. I have tested CertBot with the same and I am able to generate certificates.



    In addition, traefik is being used as a reverse proxy system which tries to verify the HTTPS TXT, AAAA, etc on the DNS server.



    I need to know if i can use Boulder as a local DNS server and if yes then if there is any documentation on the same.



    Also I am currently using DNSMASQ as a local DNS server. is there any way i can update the TXT values and all in DNSMASQ on run time..?



    Thanks in advance










    share|improve this question

























      0












      0








      0







      I have a local docker-compose setup in which i am testing some HTTPS requirements. To setup the same, LetsEncrypt Boulder Docker image was used as a local CA. I have tested CertBot with the same and I am able to generate certificates.



      In addition, traefik is being used as a reverse proxy system which tries to verify the HTTPS TXT, AAAA, etc on the DNS server.



      I need to know if i can use Boulder as a local DNS server and if yes then if there is any documentation on the same.



      Also I am currently using DNSMASQ as a local DNS server. is there any way i can update the TXT values and all in DNSMASQ on run time..?



      Thanks in advance










      share|improve this question













      I have a local docker-compose setup in which i am testing some HTTPS requirements. To setup the same, LetsEncrypt Boulder Docker image was used as a local CA. I have tested CertBot with the same and I am able to generate certificates.



      In addition, traefik is being used as a reverse proxy system which tries to verify the HTTPS TXT, AAAA, etc on the DNS server.



      I need to know if i can use Boulder as a local DNS server and if yes then if there is any documentation on the same.



      Also I am currently using DNSMASQ as a local DNS server. is there any way i can update the TXT values and all in DNSMASQ on run time..?



      Thanks in advance







      https dns lets-encrypt traefik dnsmasq






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 5:55









      Fr_nkenstienFr_nkenstien

      1,30532354




      1,30532354
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Yes, you can. Check this docker-compose.yml file:



          version: "3"

          networks:
          test:
          driver: bridge
          ipam:
          driver: default
          config:
          - subnet: 10.77.77.0/24

          services:
          boulder:
          # To minimize fetching this should be the same version used below
          image: containous/boulder:containous-acmev2
          environment:
          FAKE_DNS: 10.77.77.1
          PKCS11_PROXY_SOCKET: tcp://boulder-hsm:5657
          restart: unless-stopped
          extra_hosts:
          - docker.com:10.77.77.66
          - boulder:10.77.77.77
          ports:
          - 4000:4000 # ACME
          - 4001:4001 # ACMEv2
          - 4002:4002 # OCSP
          - 4003:4003 # OCSP
          - 4430:4430 # ACME via HTTPS
          - 4431:4431 # ACMEv2 via HTTPS
          - 8055:8055 # dns-test-srv updates
          depends_on:
          - bhsm
          - bmysql
          networks:
          test:
          ipv4_address: 10.77.77.77
          aliases:
          - sa2.boulder
          - ca2.boulder
          - ra2.boulder
          - va2.boulder
          - publisher2.boulder

          bhsm:
          # To minimize fetching this should be the same version used above
          image: letsencrypt/boulder-tools:2018-03-07
          hostname: boulder-hsm
          environment:
          PKCS11_DAEMON_SOCKET: tcp://0.0.0.0:5657
          command: /usr/local/bin/pkcs11-daemon /usr/lib/softhsm/libsofthsm2.so
          expose:
          - 5657
          networks:
          test:
          aliases:
          - boulder-hsm

          bmysql:
          image: mariadb:10.1
          hostname: boulder-mysql
          environment:
          MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
          command: mysqld --bind-address=0.0.0.0
          logging:
          driver: none
          networks:
          test:
          aliases:
          - boulder-mysql

          proxy:
          image: containous/traefik
          depends_on:
          - boulder
          extra_hosts:
          - traefik.boulder.com:10.77.77.77
          networks:
          test:
          ipv4_address: 10.77.77.66
          ports:
          - "0.0.0.0:80:80"
          - "5002:80"
          - "0.0.0.0:443:443"
          - "0.0.0.0:8080:8080"
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"

          consul:
          image: consul
          networks:
          - test
          command: agent -server -bootstrap -ui -client 0.0.0.0 -log-level debug
          ports:
          - "8400:8400"
          - "0.0.0.0:8500:8500"
          - "8600:53/udp"
          expose:
          - "8300"
          - "8301"
          - "8301/udp"
          - "8302"
          - "8302/udp"

          whoami:
          image: containous/whoami
          networks:
          - test
          labels:
          - traefik.enable=true
          - traefik.port=80
          - traefik.backend=whoami
          - traefik.network=test
          - traefik.frontend.rule=Host:whoami.docker.com

          storeconfig:
          image: containous/traefik
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"
          command: storeconfig --debug --configfile=/traefik.toml --logLevel="DEBUG"
          networks:
          - test





          share|improve this answer





















          • How would i add urls and their redirections..?? any guide please..?
            – Fr_nkenstien
            Nov 15 '18 at 12:16











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53274665%2fusing-letsencrypt-boulder-as-a-dns-server%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Yes, you can. Check this docker-compose.yml file:



          version: "3"

          networks:
          test:
          driver: bridge
          ipam:
          driver: default
          config:
          - subnet: 10.77.77.0/24

          services:
          boulder:
          # To minimize fetching this should be the same version used below
          image: containous/boulder:containous-acmev2
          environment:
          FAKE_DNS: 10.77.77.1
          PKCS11_PROXY_SOCKET: tcp://boulder-hsm:5657
          restart: unless-stopped
          extra_hosts:
          - docker.com:10.77.77.66
          - boulder:10.77.77.77
          ports:
          - 4000:4000 # ACME
          - 4001:4001 # ACMEv2
          - 4002:4002 # OCSP
          - 4003:4003 # OCSP
          - 4430:4430 # ACME via HTTPS
          - 4431:4431 # ACMEv2 via HTTPS
          - 8055:8055 # dns-test-srv updates
          depends_on:
          - bhsm
          - bmysql
          networks:
          test:
          ipv4_address: 10.77.77.77
          aliases:
          - sa2.boulder
          - ca2.boulder
          - ra2.boulder
          - va2.boulder
          - publisher2.boulder

          bhsm:
          # To minimize fetching this should be the same version used above
          image: letsencrypt/boulder-tools:2018-03-07
          hostname: boulder-hsm
          environment:
          PKCS11_DAEMON_SOCKET: tcp://0.0.0.0:5657
          command: /usr/local/bin/pkcs11-daemon /usr/lib/softhsm/libsofthsm2.so
          expose:
          - 5657
          networks:
          test:
          aliases:
          - boulder-hsm

          bmysql:
          image: mariadb:10.1
          hostname: boulder-mysql
          environment:
          MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
          command: mysqld --bind-address=0.0.0.0
          logging:
          driver: none
          networks:
          test:
          aliases:
          - boulder-mysql

          proxy:
          image: containous/traefik
          depends_on:
          - boulder
          extra_hosts:
          - traefik.boulder.com:10.77.77.77
          networks:
          test:
          ipv4_address: 10.77.77.66
          ports:
          - "0.0.0.0:80:80"
          - "5002:80"
          - "0.0.0.0:443:443"
          - "0.0.0.0:8080:8080"
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"

          consul:
          image: consul
          networks:
          - test
          command: agent -server -bootstrap -ui -client 0.0.0.0 -log-level debug
          ports:
          - "8400:8400"
          - "0.0.0.0:8500:8500"
          - "8600:53/udp"
          expose:
          - "8300"
          - "8301"
          - "8301/udp"
          - "8302"
          - "8302/udp"

          whoami:
          image: containous/whoami
          networks:
          - test
          labels:
          - traefik.enable=true
          - traefik.port=80
          - traefik.backend=whoami
          - traefik.network=test
          - traefik.frontend.rule=Host:whoami.docker.com

          storeconfig:
          image: containous/traefik
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"
          command: storeconfig --debug --configfile=/traefik.toml --logLevel="DEBUG"
          networks:
          - test





          share|improve this answer





















          • How would i add urls and their redirections..?? any guide please..?
            – Fr_nkenstien
            Nov 15 '18 at 12:16
















          0














          Yes, you can. Check this docker-compose.yml file:



          version: "3"

          networks:
          test:
          driver: bridge
          ipam:
          driver: default
          config:
          - subnet: 10.77.77.0/24

          services:
          boulder:
          # To minimize fetching this should be the same version used below
          image: containous/boulder:containous-acmev2
          environment:
          FAKE_DNS: 10.77.77.1
          PKCS11_PROXY_SOCKET: tcp://boulder-hsm:5657
          restart: unless-stopped
          extra_hosts:
          - docker.com:10.77.77.66
          - boulder:10.77.77.77
          ports:
          - 4000:4000 # ACME
          - 4001:4001 # ACMEv2
          - 4002:4002 # OCSP
          - 4003:4003 # OCSP
          - 4430:4430 # ACME via HTTPS
          - 4431:4431 # ACMEv2 via HTTPS
          - 8055:8055 # dns-test-srv updates
          depends_on:
          - bhsm
          - bmysql
          networks:
          test:
          ipv4_address: 10.77.77.77
          aliases:
          - sa2.boulder
          - ca2.boulder
          - ra2.boulder
          - va2.boulder
          - publisher2.boulder

          bhsm:
          # To minimize fetching this should be the same version used above
          image: letsencrypt/boulder-tools:2018-03-07
          hostname: boulder-hsm
          environment:
          PKCS11_DAEMON_SOCKET: tcp://0.0.0.0:5657
          command: /usr/local/bin/pkcs11-daemon /usr/lib/softhsm/libsofthsm2.so
          expose:
          - 5657
          networks:
          test:
          aliases:
          - boulder-hsm

          bmysql:
          image: mariadb:10.1
          hostname: boulder-mysql
          environment:
          MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
          command: mysqld --bind-address=0.0.0.0
          logging:
          driver: none
          networks:
          test:
          aliases:
          - boulder-mysql

          proxy:
          image: containous/traefik
          depends_on:
          - boulder
          extra_hosts:
          - traefik.boulder.com:10.77.77.77
          networks:
          test:
          ipv4_address: 10.77.77.66
          ports:
          - "0.0.0.0:80:80"
          - "5002:80"
          - "0.0.0.0:443:443"
          - "0.0.0.0:8080:8080"
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"

          consul:
          image: consul
          networks:
          - test
          command: agent -server -bootstrap -ui -client 0.0.0.0 -log-level debug
          ports:
          - "8400:8400"
          - "0.0.0.0:8500:8500"
          - "8600:53/udp"
          expose:
          - "8300"
          - "8301"
          - "8301/udp"
          - "8302"
          - "8302/udp"

          whoami:
          image: containous/whoami
          networks:
          - test
          labels:
          - traefik.enable=true
          - traefik.port=80
          - traefik.backend=whoami
          - traefik.network=test
          - traefik.frontend.rule=Host:whoami.docker.com

          storeconfig:
          image: containous/traefik
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"
          command: storeconfig --debug --configfile=/traefik.toml --logLevel="DEBUG"
          networks:
          - test





          share|improve this answer





















          • How would i add urls and their redirections..?? any guide please..?
            – Fr_nkenstien
            Nov 15 '18 at 12:16














          0












          0








          0






          Yes, you can. Check this docker-compose.yml file:



          version: "3"

          networks:
          test:
          driver: bridge
          ipam:
          driver: default
          config:
          - subnet: 10.77.77.0/24

          services:
          boulder:
          # To minimize fetching this should be the same version used below
          image: containous/boulder:containous-acmev2
          environment:
          FAKE_DNS: 10.77.77.1
          PKCS11_PROXY_SOCKET: tcp://boulder-hsm:5657
          restart: unless-stopped
          extra_hosts:
          - docker.com:10.77.77.66
          - boulder:10.77.77.77
          ports:
          - 4000:4000 # ACME
          - 4001:4001 # ACMEv2
          - 4002:4002 # OCSP
          - 4003:4003 # OCSP
          - 4430:4430 # ACME via HTTPS
          - 4431:4431 # ACMEv2 via HTTPS
          - 8055:8055 # dns-test-srv updates
          depends_on:
          - bhsm
          - bmysql
          networks:
          test:
          ipv4_address: 10.77.77.77
          aliases:
          - sa2.boulder
          - ca2.boulder
          - ra2.boulder
          - va2.boulder
          - publisher2.boulder

          bhsm:
          # To minimize fetching this should be the same version used above
          image: letsencrypt/boulder-tools:2018-03-07
          hostname: boulder-hsm
          environment:
          PKCS11_DAEMON_SOCKET: tcp://0.0.0.0:5657
          command: /usr/local/bin/pkcs11-daemon /usr/lib/softhsm/libsofthsm2.so
          expose:
          - 5657
          networks:
          test:
          aliases:
          - boulder-hsm

          bmysql:
          image: mariadb:10.1
          hostname: boulder-mysql
          environment:
          MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
          command: mysqld --bind-address=0.0.0.0
          logging:
          driver: none
          networks:
          test:
          aliases:
          - boulder-mysql

          proxy:
          image: containous/traefik
          depends_on:
          - boulder
          extra_hosts:
          - traefik.boulder.com:10.77.77.77
          networks:
          test:
          ipv4_address: 10.77.77.66
          ports:
          - "0.0.0.0:80:80"
          - "5002:80"
          - "0.0.0.0:443:443"
          - "0.0.0.0:8080:8080"
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"

          consul:
          image: consul
          networks:
          - test
          command: agent -server -bootstrap -ui -client 0.0.0.0 -log-level debug
          ports:
          - "8400:8400"
          - "0.0.0.0:8500:8500"
          - "8600:53/udp"
          expose:
          - "8300"
          - "8301"
          - "8301/udp"
          - "8302"
          - "8302/udp"

          whoami:
          image: containous/whoami
          networks:
          - test
          labels:
          - traefik.enable=true
          - traefik.port=80
          - traefik.backend=whoami
          - traefik.network=test
          - traefik.frontend.rule=Host:whoami.docker.com

          storeconfig:
          image: containous/traefik
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"
          command: storeconfig --debug --configfile=/traefik.toml --logLevel="DEBUG"
          networks:
          - test





          share|improve this answer












          Yes, you can. Check this docker-compose.yml file:



          version: "3"

          networks:
          test:
          driver: bridge
          ipam:
          driver: default
          config:
          - subnet: 10.77.77.0/24

          services:
          boulder:
          # To minimize fetching this should be the same version used below
          image: containous/boulder:containous-acmev2
          environment:
          FAKE_DNS: 10.77.77.1
          PKCS11_PROXY_SOCKET: tcp://boulder-hsm:5657
          restart: unless-stopped
          extra_hosts:
          - docker.com:10.77.77.66
          - boulder:10.77.77.77
          ports:
          - 4000:4000 # ACME
          - 4001:4001 # ACMEv2
          - 4002:4002 # OCSP
          - 4003:4003 # OCSP
          - 4430:4430 # ACME via HTTPS
          - 4431:4431 # ACMEv2 via HTTPS
          - 8055:8055 # dns-test-srv updates
          depends_on:
          - bhsm
          - bmysql
          networks:
          test:
          ipv4_address: 10.77.77.77
          aliases:
          - sa2.boulder
          - ca2.boulder
          - ra2.boulder
          - va2.boulder
          - publisher2.boulder

          bhsm:
          # To minimize fetching this should be the same version used above
          image: letsencrypt/boulder-tools:2018-03-07
          hostname: boulder-hsm
          environment:
          PKCS11_DAEMON_SOCKET: tcp://0.0.0.0:5657
          command: /usr/local/bin/pkcs11-daemon /usr/lib/softhsm/libsofthsm2.so
          expose:
          - 5657
          networks:
          test:
          aliases:
          - boulder-hsm

          bmysql:
          image: mariadb:10.1
          hostname: boulder-mysql
          environment:
          MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
          command: mysqld --bind-address=0.0.0.0
          logging:
          driver: none
          networks:
          test:
          aliases:
          - boulder-mysql

          proxy:
          image: containous/traefik
          depends_on:
          - boulder
          extra_hosts:
          - traefik.boulder.com:10.77.77.77
          networks:
          test:
          ipv4_address: 10.77.77.66
          ports:
          - "0.0.0.0:80:80"
          - "5002:80"
          - "0.0.0.0:443:443"
          - "0.0.0.0:8080:8080"
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"

          consul:
          image: consul
          networks:
          - test
          command: agent -server -bootstrap -ui -client 0.0.0.0 -log-level debug
          ports:
          - "8400:8400"
          - "0.0.0.0:8500:8500"
          - "8600:53/udp"
          expose:
          - "8300"
          - "8301"
          - "8301/udp"
          - "8302"
          - "8302/udp"

          whoami:
          image: containous/whoami
          networks:
          - test
          labels:
          - traefik.enable=true
          - traefik.port=80
          - traefik.backend=whoami
          - traefik.network=test
          - traefik.frontend.rule=Host:whoami.docker.com

          storeconfig:
          image: containous/traefik
          volumes:
          - /var/run/docker.sock:/var/run/docker.sock
          - ./traefik.toml:/traefik.toml
          - "./acme/:/acme/:rw"
          command: storeconfig --debug --configfile=/traefik.toml --logLevel="DEBUG"
          networks:
          - test






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 15 '18 at 6:43









          UllaakutUllaakut

          1,401714




          1,401714












          • How would i add urls and their redirections..?? any guide please..?
            – Fr_nkenstien
            Nov 15 '18 at 12:16


















          • How would i add urls and their redirections..?? any guide please..?
            – Fr_nkenstien
            Nov 15 '18 at 12:16
















          How would i add urls and their redirections..?? any guide please..?
          – Fr_nkenstien
          Nov 15 '18 at 12:16




          How would i add urls and their redirections..?? any guide please..?
          – Fr_nkenstien
          Nov 15 '18 at 12:16


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53274665%2fusing-letsencrypt-boulder-as-a-dns-server%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Hercules Kyvelos

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud