patches and low-level development discussion
 help / color / mirror / code / Atom feed
From: Yureka Lilian <yureka@cyberchaos.dev>
To: devel@spectrum-os.org
Cc: Yureka Lilian <yureka@cyberchaos.dev>, Alyssa Ross <hi@alyssa.is>
Subject: [PATCH v4 08/10] img/app: change to ipv6 nameserver
Date: Sat, 29 Nov 2025 20:43:58 +0100	[thread overview]
Message-ID: <20251129194404.37773-9-yureka@cyberchaos.dev> (raw)
In-Reply-To: <20251129194404.37773-1-yureka@cyberchaos.dev>

Also remove hard-coded ipv4 default route.
Eventually this will be changed to have both ipv4 and ipv6 nameserver,
and support IPv4 with the new router.

Signed-off-by: Yureka Lilian <yureka@cyberchaos.dev>
Reviewed-by: Alyssa Ross <hi@alyssa.is>
---
 img/app/image/etc/mdev/iface  | 19 +------------------
 img/app/image/etc/resolv.conf |  2 +-
 2 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/img/app/image/etc/mdev/iface b/img/app/image/etc/mdev/iface
index 95f2fa8..1d81f2a 100755
--- a/img/app/image/etc/mdev/iface
+++ b/img/app/image/etc/mdev/iface
@@ -4,22 +4,5 @@
 
 background {
   importas -Si INTERFACE
-
-  # Our IP is encoded in the NIC-specific portion of the interface's MAC
-  # address.
-  backtick -E LOCAL_IP {
-    awk -PF: "
-      BEGIN { ex = 1 }
-      $1 == \"02\" && $2 == \"00\" {
-        printf \"100.64.%d.%d\\n\", \"0x\" $5, \"0x\" $6
-        ex = 0
-      }
-      END { exit ex }
-    " /sys/class/net/${INTERFACE}/address
-  }
-
-  if { ip address add ${LOCAL_IP}/32 dev $INTERFACE }
-  if { ip link set $INTERFACE up }
-  if { ip route add 169.254.0.1 dev $INTERFACE }
-  ip route add default via 169.254.0.1 dev $INTERFACE
+  ip link set $INTERFACE up
 }
diff --git a/img/app/image/etc/resolv.conf b/img/app/image/etc/resolv.conf
index 7fcdf3a..e82c3d0 100644
--- a/img/app/image/etc/resolv.conf
+++ b/img/app/image/etc/resolv.conf
@@ -1,4 +1,4 @@
 # SPDX-License-Identifier: CC0-1.0
 # SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is>
 
-nameserver 1.1.1.1
+nameserver 2606:4700:4700::1111
-- 
2.51.2


  parent reply	other threads:[~2025-11-29 19:47 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-29 19:43 [PATCH v4 00/10] spectrum-router Yureka Lilian
2025-11-29 19:43 ` [PATCH v4 01/10] release/checks/integration: temporarily disable networking tests Yureka Lilian
2025-11-30 16:08   ` Alyssa Ross
2025-11-29 19:43 ` [PATCH v4 02/10] vm/sys/net: remove connman Yureka Lilian
2025-11-30 16:08   ` Alyssa Ross
2025-11-29 19:43 ` [PATCH v4 03/10] pkgs: temporarily disable mailutils tests Yureka Lilian
2025-11-30 16:08   ` Alyssa Ross
2025-11-29 19:43 ` [PATCH v4 04/10] vm/sys/net: integrate xdp-forwarder Yureka Lilian
2025-11-30 16:08   ` Alyssa Ross
2025-11-29 19:43 ` [PATCH v4 05/10] vm/sys/net: add iwd Yureka Lilian
2025-11-30 16:08   ` Alyssa Ross
2025-11-29 19:43 ` [PATCH v4 06/10] tools: add spectrum-router Yureka Lilian
2025-11-30 16:08   ` Alyssa Ross
2025-11-29 19:43 ` [PATCH v4 07/10] host: integrate router Yureka Lilian
2025-11-30 16:08   ` Alyssa Ross
2025-11-29 19:43 ` Yureka Lilian [this message]
2025-11-30 16:08   ` [PATCH v4 08/10] img/app: change to ipv6 nameserver Alyssa Ross
2025-11-29 19:43 ` [PATCH v4 09/10] release/checks/integration: Adapt networking test for ipv6 Yureka Lilian
2025-11-30 16:08   ` Alyssa Ross
2025-11-29 19:44 ` [PATCH v4 10/10] release/checks/integration: reenable networking tests Yureka Lilian
2025-11-30 16:08   ` Alyssa Ross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251129194404.37773-9-yureka@cyberchaos.dev \
    --to=yureka@cyberchaos.dev \
    --cc=devel@spectrum-os.org \
    --cc=hi@alyssa.is \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/crosvm
	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/nixpkgs
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock
	https://spectrum-os.org/git/www

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).