Skip to content
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

How to get right response when use dns #326

Open
ssacpklnm opened this issue Dec 30, 2024 · 0 comments
Open

How to get right response when use dns #326

ssacpklnm opened this issue Dec 30, 2024 · 0 comments

Comments

@ssacpklnm
Copy link

ssacpklnm commented Dec 30, 2024

I used dns in the forward proxy like that:
resolver xxx.svc.cluster.local valid=10s;

As you can see in the title, if I use a forward proxy and dns, when the domain name accessed cannot be resolved, the result returned by the curl command is

User-Agent: curl/7.79.1
Accept: /
Proxy-Connection: Keep-Alive

Mark bundle as not supporting multiuse
< HTTP/1.1 502 Bad Gateway
< Server: nginx
< Date: Mon, 30 Dec 2024 02:35:24 GMT
< Content-Type: text/html
< Content-Length: 150
< Connection: keep-alive
<

How can I get normal echoes when accessing unresolvable domain names with dns and this project?

Expected output:curl: (6) Could not resolve host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant