[Bug] DNS server does not change if static dietpi.txt

So, I’ve downloaded a fresh DietPi image and I’ve put it on my SD card.
I eddited dietpi.txt in the boot partition and set a static IP address.

When everything was done, I wondered why apt-get update was getting so slow, so I looked in /etc/resolv.conf and there is a local IP address above (192.168.1.11 something like that). That is obviously not my DNS server, so I’ve changed it.

There was no option in /boot/dietpi.txt to enter the DNS server, so please add it or use 8.8.8.8 as DNS server instead of 192.168.x.x.

Good find.
Seems we are missing a package needed to keep dns (resolvconf > /etc/resolv.conf) updated on DHCP.
As for static, i’ll need to modify dietpi-config to allow for specifying dns server.

https://github.com/Fourdee/DietPi/issues/135

Fixed for v103: https://github.com/Fourdee/DietPi/issues/135#issuecomment-162580675

+1 Pilovali for spotting this and uncovering a bigger underlying issue :slight_smile: