Bug in dietpi-config prevents changing the DNS when Static

Creating a bug report/issue

dietpi-config network adpaters static dns cannot be changed
I have searched the existing open and closed issues
Yes I have!

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • 9.8.0 - patch 0.1
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • bookworm
  • Kernel version | uname --all
  • Linux 6.1.21-V8+ #1642 SMP PREEMPT MON APR 3 17:24:13 Aarch64 GNU/LinuxBST 2023
  • Architecture | dpkg --print-architecture
  • Arm64
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
  • RPI Zero 2 W
  • Power supply used | (EG: 5V 1A RAVpower)
  • More than enough, thank you!
  • SD card used | (EG: SanDisk ultra)
    Works perfectly - Thank you again!

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)
  • dietpi-config
  • Was the software title installed freshly or updated/migrated?
  • checked for updates yesterday
  • Can this issue be replicated on a fresh installation of DietPi?
  • Don’t know, give it a try!
    ← If you sent a “dietpi-bugreport”, please paste the ID here →
  • Bug report ID | echo $G_HW_UUID
    First time reporting this bug

Steps to reproduce

  1. …start dietpi-config
  2. …go to networking adapter - static
  3. —IP address, Gateway, DNS
  4. select apply
  5. everythig but the dns server changes
  6. when it returns to dietpi, everything but DNS has changed as expected.
  7. DNS is unchanged

Expected behaviour

DNS should change

Actual behaviour

  • …DNS is not changing

Extra details

  • …As it stands right now, the DNS address cannot be changed manually at all. If it is changed in the resolv.conf or etc/network/interfaces file, it is changed back by the software.

Your AI in networking isn’t so I.

It would be nice if moving to networkmanager were well documented or in the package list. This is a situation where a DHCP address only would work great. Network manager allows this,

You have probably installed a DHCP package that controls the resolv.conf. Can you check

cat /etc/resolv.conf

I checked before ai sent the bug. Everything is managed through dietpi-config. Using the standard ifdown network interface. I thought that the standard utilities you have would work and then I noticed that when I changed the dns server, it would return to the default. The gateway and static ip adress are fine, just the dns server change. So I decided to sumbit the problem before going any farther.

Usually its working. Our tooling is not doing any magic. We just maintain /etc/network/interfaces for IP address settings and /etc/resolv.conf for DNS server configuration. You could do it manually same way.

Pls share current content of both files.

Hm I cannot replicate this behaviour:

I change DNS in /etc/resolv.conf → This change is show in dietpi-config and vice versa.