{
  "id": "go/grpc-unavailable-dns-resolution-failed",
  "signature": "rpc error: code = Unavailable desc = name resolver error: failed to query DNS: lookup myservice.example.com: no such host",
  "signature_zh": "rpc错误：代码=不可用 描述=名称解析器错误：DNS查询失败：查找myservice.example.com：没有这样的主机",
  "regex": "rpc\\ error:\\ code\\ =\\ Unavailable\\ desc\\ =\\ name\\ resolver\\ error:\\ failed\\ to\\ query\\ DNS:\\ lookup\\ myservice\\.example\\.com:\\ no\\ such\\ host",
  "domain": "go",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The DNS name used in the gRPC target cannot be resolved, often due to incorrect hostname or DNS misconfiguration.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC目标中使用的DNS名称无法解析，通常是由于主机名错误或DNS配置错误。",
  "versions": [
    {
      "version": "1.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Use a random IP address hoping it resolves.",
      "why_fails": "The client specifically tries to resolve the given name; random IPs are ignored.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignore the error and retry indefinitely.",
      "why_fails": "Without DNS resolution, the connection will never succeed.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the DNS record and correct the hostname.",
      "success_rate": 0.95,
      "how": "Use nslookup or dig to check: nslookup myservice.example.com. Update the target address accordingly.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use an IP address directly instead of a hostname.",
      "success_rate": 0.9,
      "how": "conn, err := grpc.Dial(\"10.0.0.1:8080\", grpc.WithInsecure())",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-04-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}