{"record":{"id":"fabb78f730c5a21b","repo":"kubernetes/kops","slug":"error-enabling-dns64-w","errorCode":null,"errorMessage":"error enabling DNS64: %w","messagePattern":"error enabling DNS64: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/subnet.go","lineNumber":333,"sourceCode":"\t\t\thostnameType = ec2types.HostnameTypeResourceName\n\t\t}\n\t\trequest := &ec2.ModifySubnetAttributeInput{\n\t\t\tSubnetId:                       e.ID,\n\t\t\tPrivateDnsHostnameTypeOnLaunch: hostnameType,\n\t\t}\n\t\t_, err := t.Cloud.EC2().ModifySubnetAttribute(ctx, request)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error modifying hostname type: %w\", err)\n\t\t}\n\n\t\tif fi.ValueOf(e.CIDR) == \"\" {\n\t\t\trequest = &ec2.ModifySubnetAttributeInput{\n\t\t\t\tSubnetId:    e.ID,\n\t\t\t\tEnableDns64: &ec2types.AttributeBooleanValue{Value: aws.Bool(true)},\n\t\t\t}\n\t\t\t_, err = t.Cloud.EC2().ModifySubnetAttribute(ctx, request)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"error enabling DNS64: %w\", err)\n\t\t\t}\n\t\t} else {\n\t\t\trequest = &ec2.ModifySubnetAttributeInput{\n\t\t\t\tSubnetId:                             e.ID,\n\t\t\t\tEnableResourceNameDnsARecordOnLaunch: &ec2types.AttributeBooleanValue{Value: changes.ResourceBasedNaming},\n\t\t\t}\n\t\t\t_, err = t.Cloud.EC2().ModifySubnetAttribute(ctx, request)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"error modifying A records: %w\", err)\n\t\t\t}\n\t\t}\n\n\t\tif fi.ValueOf(e.IPv6CIDR) != \"\" {\n\t\t\trequest = &ec2.ModifySubnetAttributeInput{\n\t\t\t\tSubnetId:                                e.ID,\n\t\t\t\tEnableResourceNameDnsAAAARecordOnLaunch: &ec2types.AttributeBooleanValue{Value: changes.ResourceBasedNaming},\n\t\t\t}\n\t\t\t_, err = t.Cloud.EC2().ModifySubnetAttribute(ctx, request)","sourceCodeStart":315,"sourceCodeEnd":351,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/subnet.go#L315-L351","documentation":"ModifySubnetAttribute failed while enabling DNS64 on an IPv6-native (dual-stack, CIDR-less) subnet; the wrapped error is the AWS EC2 API response.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awstasks/subnet.go:333 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check ec2:ModifySubnetAttribute permissions","Verify DNS64/RNDR support for the subnet, then retry the apply"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}