Skip to content

Remove bogus DNS from eth0/eth1 network configs#40

Open
pbitzer wants to merge 5 commits into0.3.xfrom
fix/eth0-dns
Open

Remove bogus DNS from eth0/eth1 network configs#40
pbitzer wants to merge 5 commits into0.3.xfrom
fix/eth0-dns

Conversation

@pbitzer
Copy link
Contributor

@pbitzer pbitzer commented Feb 18, 2026

Summary

  • Remove DNS=10.10.10.1 from files/40-eth0.network — the sensor instrument is not a DNS server
  • Remove DNS=192.168.1.1 from files/30-eth1.network — the local service port has no DNS server

Problem

On cellular sensors, DNS resolution breaks when the HAMMA sensor gets connected. The sequence:

  1. Boot without sensor → udhcpc writes good carrier DNS → DNS works
  2. Sensor plugged in → eth0 carrier comes up
  3. systemd-resolved re-evaluates → registers 10.10.10.1 (from eth0 config) as a DNS server
  4. resolv.conf regenerated with bogus DNS → name resolution breaks
  5. 50_bring_wwan0_up.py doesn't fix it because its ping check (8.8.8.8) still passes

wwan0 can't contribute DNS because it's Unmanaged=yes, so eth0's bogus entry becomes the only DNS server.

Test plan

  • All 117 existing tests pass
  • Deploy to mj00 (dev unit), verify resolvectl status no longer shows DNS on eth0/eth1
  • Connect sensor, confirm DNS still works after carrier event
  • Verify WiFi units unaffected

🤖 Generated with Claude Code

pbitzer and others added 5 commits January 25, 2026 20:01
setup_sensor_connection() was creating .ssh/config as root instead of pi user,
causing later operations (github-hamma key setup) to fail with permission denied.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Rewrote CLAUDE.md (project status + rules) and KNOWLEDGE.md (repo-specific
dev reference). Deleted DEVELOPMENT_NOTES.md, MASTER_PLAN.md, and
SCRIPT_COMPARISON.md — content absorbed into KNOWLEDGE.md and the new
~/.claude/hamma-system.md operational reference.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
eth0 connects to the HAMMA sensor instrument (10.10.10.1) and eth1 is
a local service port — neither runs a DNS server. When sensor carrier
comes up, systemd-resolved registers 10.10.10.1 as a DNS server and
overwrites the good carrier DNS from udhcpc, breaking name resolution
on cellular units.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant