[Bug]: Host DNS NXDOMAIN has no SOA, so macOS caches it and a re-created cluster name stays unresolvable
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- swift
- 領域
- networking
調査の方向性
issueに記載された Sources/DNSServer/Handlers/NxDomainResolver.swift から始め、NXDOMAIN応答の構築方法と ttl の使用方法を調べてください。DNS応答テストで、権威レコードとネガティブキャッシュがカバーされているか確認してください。NXDOMAIN応答に短い最小TTLを持つSOAが含まれ、回帰がテストでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I have done the following
- I have searched the existing issues
- If possible, I've reproduced the issue using the 'main' branch of this project (reproduced on the 1.7.1 release)
Steps to reproduce
- Create cluster
demo, then delete it. - Look up
demo.testfrom the Mac while it doesn't exist (e.g.kubectlwith the old kubeconfig): NXDOMAIN. - Re-create cluster
demo. kubectl get nodeswith the new kubeconfig.
Problem description
Step 4 fails with dial tcp: lookup demo.test: no such host for minutes (two attempts in a row), while container cluster list --nodes shows the node running with an IP. A cluster with a fresh name resolves in 0.05 s.
Likely cause: NxDomainResolver (Sources/DNSServer/Handlers/NxDomainResolver.swift) returns NXDOMAIN without an SOA in the authority section, and its ttl is unused. Per RFC 2308 the negative-cache lifetime is then left to the resolver, and macOS kept it for minutes. Returning an SOA with a short minimum TTL (a few seconds) would bound it.
Seen on an M4 Pro.
Environment
- OS: macOS 27.2.1 (26B131)
- Xcode: n/a (signed release pkg)
- Container: 1.7.1 (a15b460)
Code of Conduct
- I agree to follow this project's Code of Conduct
- 主要言語
- Swift
- スター
- 51.9k
- フォーク
- 1.8k
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 27
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apple/container のほかの issue
-
[Bug]: Kernel download ignores credentials in HTTPS_PROXY and fails with proxyAuthenticationRequiredオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apple/container#2499 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: `container machine logs -f` exits immediately when the log is empty対応中かも @srivilliamsai が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apple/container#2492 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Intermittent failure in PathUtilsTests.testNewDirectoryIsExcludedAndExistingChoiceIsKeptオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apple/container#2474 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Request]: container ls --filter label=key=value対応中かも @kavix が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apple/container#2403 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Request]: Improve robustness and path resolution in ensure-hawkeye.sh対応中かも @denizguney が 45 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
apple/container の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
fxios-coreexperience
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mozilla-mobile/firefox-ios#36661 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
manaflow-ai/cmux#45713 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Save the clothespinsオープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
alejandrobujan/tendedero#151 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信