net: resolver error messages indicate wrong dns server when using custom resolver #43703
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go1.14.13
Does this issue reproduce with the latest release?
Yes. At least the latest on go playgound
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
If I update/set a the DNS resolver to a custom address the error when host can't connect or couldn't resolve is using the incorrect DNS server address in the response. Example: play.golang.org link: https://play.golang.org/p/LmTM-eOy3q-
What did you expect to see?
I see the error message indicating that it failed with the provisioned DNS server. I am assuming this is just invalid error message but not an issue with golang not using the correct DNS server.
What did you see instead?
It is using the default DNS server (likely configured through DSCP) in the error message instead of 8.8.8.8.
The text was updated successfully, but these errors were encountered: