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.
[Bug] DNS server does not change if static dietpi.txt
Re: [Bug] DNS server does not change if static dietpi.txt
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.
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.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: [Bug] DNS server does not change if static dietpi.txt
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Re: [Bug] DNS server does not change if static dietpi.txt
Fixed for v103: https://github.com/Fourdee/DietPi/issue ... -162580675
+1 Pilovali for spotting this and uncovering a bigger underlying issue
+1 Pilovali for spotting this and uncovering a bigger underlying issue

If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Donating is the easiest – you can use PayPal or become a DietPi patron.