-
Notifications
You must be signed in to change notification settings - Fork 18k
net: cgo dns resolver doesn't work as expected. #66114
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
Comments
Can you execute Libc issues are not in our scope, you have to report this the libc maintainers. |
thank you for reply me so quickly, the first and second dig result like below:
3th and 4th nameserver dig result like below:
|
This is weird that the libc does not always query the first nameserver. The only thing that I can suggest is to limit the amount of nameservers to 3, maybe this is the reason for this issue? It might truncate the first nameserver, and only query the three nameservers that return the
|
thank you very muck @mateusz834 , it seems doesn't resolv my problem on this way. I will try to report this to the libc maintainers. |
Go version
go 1.19 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I tried to request the url using a local domain.(can only be resolved by local dns resolver) like below:
the local
cat /etc/resolv.conf
like below:the dns resolver used the 3th namesever sometimes and my local resolver work without any problem , but when I using
dlv
remote debug this problem, the phenomenon has disappeared. and when I build the program using-tags 'netgo'
, it's also disappear.What did you see happen?
some request return the blow message:
What did you expect to see?
always using the first namesever to resolv the domain.
The text was updated successfully, but these errors were encountered: