TuxInvader / nginx-dns

Sample Configuration for DNS over HTTPS (DoH/DoT gateway) and GSLB with NGINX
BSD 2-Clause "Simplified" License
194 stars 47 forks source link

dns.get_qname not found #21

Open logical-voice opened 1 year ago

logical-voice commented 1 year ago

Hi, I have installed nginx 1.25.1 + njs 0.8.0 and used "nginx-doh-and-dot-to-dns.conf" to setup DoH service. After installation it doesn't work properly and I get the following errors in /var/log/nginx/error.log .

js function "dns.get_qname" not found while prereading client data, client: xxx.xxx.xxx.xxx, server: 0.0.0.0:53 js exception: TypeError: (intermediae value)["bytesFrom"] is not a function at module (/etc/nginx/njs.d/dns/dns.js:28)

Dual-0 commented 1 year ago

look into #19. This helps me to get v2 working with nginx 1.25.2 + njs 0.8.0. Unfortunately there are still a few log messages but DoT and DoH works.