{"record":{"id":"ae11849059e16067","repo":"owasp-amass/amass","slug":"failed-to-traverse-the-aliases","errorCode":null,"errorMessage":"failed to traverse the aliases","messagePattern":"failed to traverse the aliases","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/net/addr.go","lineNumber":160,"sourceCode":"\t\t\tbreak\n\t\t}\n\t\tset.Insert(n.Asset.Key())\n\n\t\tif edges, err := db.OutgoingEdges(ctx, n, since, \"dns_record\"); err == nil && len(edges) > 0 {\n\t\t\tfor _, edge := range edges {\n\t\t\t\tif rel, ok := edge.Relation.(*oamdns.BasicDNSRelation); ok {\n\t\t\t\t\tif rel.Header.RRType == 1 || rel.Header.RRType == 28 {\n\t\t\t\t\t\treturn getAddr(ctx, db, edge.ToEntity, since)\n\t\t\t\t\t} else if rel.Header.RRType == 5 {\n\t\t\t\t\t\tnext = edge.ToEntity\n\t\t\t\t\t\tcontinue loop\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn nil, errors.New(\"failed to traverse the aliases\")\n}\n","sourceCodeStart":142,"sourceCodeEnd":162,"githubUrl":"https://github.com/owasp-amass/amass/blob/79299dce87b0085db0f2f4ef3e9c52cccb49f514/internal/net/addr.go#L142-L162","documentation":"cnameQuery exhausted its loop over the CNAME alias chain without reaching an address record: every dns_record edge examined was either not a BasicDNSRelation, not an A/AAAA (RRType 1/28) or CNAME (RRType 5) record, or the chain ended without a resolvable target. The sentinel fires when getAddr was never reachable through the alias traversal.","triggerScenarios":"Thrown at internal/net/addr.go:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the CNAME chain in the graph terminates in A/AAAA records within the 'since' window","Guard against CNAME loops or chains that exceed the traversal's implicit limits","Treat the error as 'unresolvable alias' in NamesToAddrs and skip the name instead of propagating the failure"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"79299dce87b0085db0f2f4ef3e9c52cccb49f514","analyzedAt":"2026-09-06T08:22:48.198Z","contentChangedAt":"2026-09-06T08:22:48.198Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}