From 26597888bad4e839ba69ffc7ae6877ebeb77dc83 Mon Sep 17 00:00:00 2001 From: Mathieu Moran Date: Wed, 12 Aug 2026 21:14:46 -0400 Subject: [PATCH] fix: use public DNS on phone-hotspot (carrier resolver fails .dev tunnel) - yaris_uplink configure() keyfile: dns=8.8.8.8;1.1.1.1 + ignore-auto-dns=true so the Pi doesn't rely on the phone's DHCP DNS, which failed to resolve yaris.ceaf.dev (NameResolutionError) and broke uploads on the hotspot - test asserts the DNS lines are written to the keyfile --- deploy/yaris_uplink.py | 5 +++++ tests/test_yaris_uplink.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/deploy/yaris_uplink.py b/deploy/yaris_uplink.py index 644dc6e..b542907 100644 --- a/deploy/yaris_uplink.py +++ b/deploy/yaris_uplink.py @@ -379,6 +379,11 @@ method=auto dhcp-send-hostname=true dhcp-hostname=yaris dhcp-client-id=yaris-obd +# Use public DNS instead of the phone's DHCP-provided resolver — some +# carrier/hotspot resolvers fail to resolve the server hostname (e.g. the +# .dev Cloudflare tunnel), which broke uploads on the phone hotspot. +dns=8.8.8.8;1.1.1.1; +ignore-auto-dns=true [ipv6] method=auto diff --git a/tests/test_yaris_uplink.py b/tests/test_yaris_uplink.py index 0d9ad98..cafa787 100644 --- a/tests/test_yaris_uplink.py +++ b/tests/test_yaris_uplink.py @@ -58,6 +58,8 @@ class UplinkCredentialTest(unittest.TestCase): self.assertEqual(mode, 0o600) self.assertIn("ssid=My Phone", keyfile) self.assertIn("psk=private-password", keyfile) + self.assertIn("dns=8.8.8.8;1.1.1.1;", keyfile) + self.assertIn("ignore-auto-dns=true", keyfile) for call in run_nmcli.call_args_list: self.assertNotIn("private-password", call.args)