Giter Club home page Giter Club logo

Comments (6)

ignoramous avatar ignoramous commented on May 15, 2024

@amithm7 would you know what is going awry here?

from serverless-dns.

amithm7 avatar amithm7 commented on May 15, 2024

To do TLS termination in-app on deno, 3 env. variables must be set.

For local dev, in .env file:

TERMINATE_TLS=true
TLS_KEY_PATH=test/data/tls/dns.rethinkdns.localhost.key
TLS_CRT_PATH=test/data/tls/dns.rethinkdns.localhost.crt

And kdig command is:

kdig duckduckgo.com @0.0.0.0:10000 +tls +tls-sni=1-IAAAACA.dns.rethinkdns.localhost

doh command:

doh -k duckduckgo.com https://dns.rethinkdns.localhost:8080/1:4AcHAP__________-f8\=

from serverless-dns.

ignoramous avatar ignoramous commented on May 15, 2024

All three .env vars are set as approp.

The kdig command in the first comment does work for local nodejs runs... Though, I tried this other command too, but it didn't work as well:

kdig duckduckgo.com @0.0.0.0:10000 +tls +tls-sni=1-IAAAACA.dns.rethinkdns.localhost
;; WARNING: TLS, handshake failed (Decryption has failed.)
;; ERROR: failed to query server 0.0.0.0@10000(TCP)

cURL's doh command works (iff dns.rethinkdns.localhost is added to /etc/hosts), so that is good.

from serverless-dns.

amithm7 avatar amithm7 commented on May 15, 2024

This also works for me:

kdig amazon.com @dns.rethinkdns.localhost:10000 +tls +tls-sni=1-IAAAACA.dns.rethinkdns.localhost

Even sni is not used on deno, this also works for me:

kdig @dns.rethinkdns.localhost:10000 +tls amazon.com

My host file has:

❯ cat /etc/hosts
127.0.0.1       localhost a.dns.rethinkdns.localhost dns.rethinkdns.localhost

Or is it difference in versions?
I have kdig (Knot DNS), version 3.1.5

from serverless-dns.

ignoramous avatar ignoramous commented on May 15, 2024

I am on kdig v2.x

➜ kdig --version
kdig (Knot DNS), version 2.7.8

Strangely, starting today, DoT on Deno works. May be kdig v2.x doesn't work with Deno v1.1x in Januarys... who knows 🤷

from serverless-dns.

ignoramous avatar ignoramous commented on May 15, 2024

DoT is down, only in prod: #61

from serverless-dns.

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.