nginx-dns icon indicating copy to clipboard operation
nginx-dns copied to clipboard

dns.get_qname not found

Open logical-voice opened this issue 2 years ago • 1 comments
trafficstars

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)

logical-voice avatar Aug 04 '23 10:08 logical-voice

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.

Dual-0 avatar Aug 24 '23 16:08 Dual-0