net: resolver fails to resolve host with 2 cnames chain or more #52005
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?MacOs (darwin). but it is also reproduced in other env types.
go env
OutputWhat did you do?
I am trying to resolve a dns record that is pointing to a cname. and the other cname is pointing to A record.
(I have a record which is resolved to a cname and the cname is resolved to an ip)
I am getting the error: no such host.
Code:
it is working for a url like google.com but it is failing for urls that has 2 CNAMEs in their resolving "chain".
The same code is working if we have only 1 cname in the chain.
What did you expect to see?
I expect the resolving to be successful.
What did you see instead?
lookup <some_url> on : no such host
Thanks!!
The text was updated successfully, but these errors were encountered: