{"record":{"id":"2c148755b7c01a46","repo":"kubernetes/kops","slug":"unknown-dns-type-q","errorCode":null,"errorMessage":"unknown DNS type %q","messagePattern":"unknown DNS type %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/model/awsmodel/dns.go","lineNumber":58,"sourceCode":"\n\t// Configuration for a DNS zone\n\tdnsZone := &awstasks.DNSZone{\n\t\tName:      new(b.NameForDNSZone()),\n\t\tLifecycle: b.Lifecycle,\n\t}\n\n\ttopology := b.Cluster.Spec.Networking.Topology\n\tif topology != nil {\n\t\tswitch topology.DNS {\n\t\tcase kops.DNSTypePublic:\n\t\t// Ignore\n\n\t\tcase kops.DNSTypePrivate:\n\t\t\tdnsZone.Private = new(true)\n\t\t\tdnsZone.PrivateVPC = b.LinkToVPC()\n\n\t\tdefault:\n\t\t\treturn fmt.Errorf(\"unknown DNS type %q\", topology.DNS)\n\t\t}\n\t}\n\n\tif !strings.Contains(b.Cluster.Spec.DNSZone, \".\") {\n\t\t// Looks like a hosted zone ID\n\t\tdnsZone.ZoneID = new(b.Cluster.Spec.DNSZone)\n\t} else {\n\t\t// Looks like a normal DNS name\n\t\tdnsZone.DNSName = new(b.Cluster.Spec.DNSZone)\n\t}\n\n\tc.EnsureTask(dnsZone)\n\treturn nil\n}\n\nfunc (b *DNSModelBuilder) Build(c *fi.CloudupModelBuilderContext) error {\n\t// Add a HostedZone if we are going to publish a dns record that depends on it\n\tif b.Cluster.PublishesDNSRecords() {","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/model/awsmodel/dns.go#L40-L76","documentation":"The cluster's network topology specifies a DNS type other than Public or Private when building the DNS zone task; an unrecognized topology.dns value in the cluster spec.","triggerScenarios":"Thrown at pkg/model/awsmodel/dns.go:58 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the topology DNS setting to Public or Private","Clear the topology block if public DNS is intended","Validate the cluster spec with kops validate cluster"],"exampleFix":null,"handlingStrategy":"validation","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"}