-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doh Request Passing Nothing To Upstream Server #12
Comments
Hi @nrnavid - can you share your configuration please? |
here is my nginx configuration events { http {
} stream { DNS logging#log_format dns '$remote_addr [$time_local] $protocol "$dns_qname"'; Include the NJS modulejs_include /etc/nginx/njs.d/nginx_stream.js; The $dns_qname variable can be populated by preread calls, and can be used for DNS routing#js_set $dns_qname dns_get_qname;
}` by the way i undrestood that your code is looking for dns= in query string sp it was always returning empty string to dns proxy |
@nrnavid I seem to encounter the same issue as yours, where the upstream DNS server (either 1.1.1.1 or 8.8.8.8) immediately closes the connection (likely due to a corrupt request) and if I point it to a dnsmasq instance running on another computer in the same LAN, I get a timeout which is even weirder. It's really hard to debug the JS libs due to logging not working at all from NJS for some reason. I am on debian bullseye |
Hi @nrnavid Apologies, but the example you were using was out of date. I must have missed it when I updated the other examples. The function call you are using doesn't exist, the line
should be
Fixed in: 58386f2 As a side note, you don't need to pass through the DOH -> 127.0.0.1:DOT -> 8.8.8.8:DNS, you can take out the loopback through DoT section. And just use:
|
doh_filter_request function is not working correctly when i pass a dns query over https. it makes the dns_query data to an empty string and passes it to dns upstream server.
The text was updated successfully, but these errors were encountered: