# Bug in dietpi-config prevents changing the DNS when Static

**URL:** <https://dietpi.com/forum/t/bug-in-dietpi-config-prevents-changing-the-dns-when-static/22722>\
**Category:** Troubleshooting\
**Tags:** wifi\
**Created:** [9 February 2025 22:34 UTC](https://dietpi.com/forum/t/bug-in-dietpi-config-prevents-changing-the-dns-when-static/22722 "2025-02-09T22:34:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliverhbailey](https://dietpi.com/forum/user_avatar/dietpi.com/oliverhbailey/32/7497_2.png) [@oliverhbailey](https://dietpi.com/forum/u/oliverhbailey)\
**Post date:** [9 February 2025 22:34 UTC](https://dietpi.com/forum/t/bug-in-dietpi-config-prevents-changing-the-dns-when-static/22722/1 "2025-02-09T22:34:42Z")

</div>

### 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,

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [9 February 2025 22:54 UTC](https://dietpi.com/forum/t/bug-in-dietpi-config-prevents-changing-the-dns-when-static/22722/2 "2025-02-09T22:54:43Z")

</div>

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

```auto
cat /etc/resolv.conf

```

---

<div class="post-metadata">

**Author:** ![oliverhbailey](https://dietpi.com/forum/user_avatar/dietpi.com/oliverhbailey/32/7497_2.png) [@oliverhbailey](https://dietpi.com/forum/u/oliverhbailey)\
**Post date:** [9 February 2025 23:58 UTC](https://dietpi.com/forum/t/bug-in-dietpi-config-prevents-changing-the-dns-when-static/22722/3 "2025-02-09T23:58:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [10 February 2025 01:33 UTC](https://dietpi.com/forum/t/bug-in-dietpi-config-prevents-changing-the-dns-when-static/22722/4 "2025-02-10T01:33:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [10 February 2025 16:56 UTC](https://dietpi.com/forum/t/bug-in-dietpi-config-prevents-changing-the-dns-when-static/22722/5 "2025-02-10T16:56:26Z")

</div>

Hm I cannot replicate this behaviour:

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

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [8 August 2025 04:56 UTC](https://dietpi.com/forum/t/bug-in-dietpi-config-prevents-changing-the-dns-when-static/22722/6 "2025-08-08T04:56:51Z")

</div>

Closed on 8 August 2025 04:56 UTC

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.
