Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include old resolv.conf contents without nameservers #10731

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

simonrw
Copy link
Contributor

@simonrw simonrw commented Apr 26, 2024

Motivation

A user mentioned that their DNS lookups within their Kubernetes cluster did not work with "simple" names, e.g. looking up a service by its name only - not specifying .cluster.local or .<namespace>.svc.cluster.local etc.

Changes

  • Rather than clobbering the entire /etc/resolv.conf we only update the nameservers fields, leaving the search and ndots (and others) at their original values

@simonrw simonrw added this to the Playground milestone Apr 26, 2024
@simonrw simonrw added the semver: patch Non-breaking changes which can be included in patch releases label Apr 26, 2024
@simonrw simonrw self-assigned this Apr 26, 2024
Copy link

github-actions bot commented Apr 26, 2024

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 39m 50s ⏱️ +48s
3 007 tests ±0  2 689 ✅ ±0  318 💤 ±0  0 ❌ ±0 
3 009 runs  ±0  2 689 ✅ ±0  320 💤 ±0  0 ❌ ±0 

Results for commit d039828. ± Comparison against base commit caca187.

♻️ This comment has been updated with latest results.

@simonrw simonrw marked this pull request as ready for review May 24, 2024 16:11
@simonrw simonrw force-pushed the dns/keep-resolvconf-options branch from 27034f5 to d11547e Compare May 24, 2024 16:11
@simonrw simonrw requested a review from dfangl May 24, 2024 16:12
Copy link
Member

@dfangl dfangl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good changes, that should fix the name resolving issues!

tests/unit/test_dns_server.py Show resolved Hide resolved
@simonrw simonrw force-pushed the dns/keep-resolvconf-options branch from 95f40fc to d039828 Compare June 4, 2024 08:17
@simonrw simonrw merged commit 54f1fb5 into master Jun 4, 2024
30 checks passed
@simonrw simonrw deleted the dns/keep-resolvconf-options branch June 4, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants