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

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Pilovali
Posts: 81
Joined: Sat Oct 03, 2015 7:11 pm
Location: The Netherlands
Contact:

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

Post by Pilovali »

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.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

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

Post by Fourdee »

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.
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.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

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

Post by Fourdee »

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.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

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

Post by Fourdee »

Fixed for v103: https://github.com/Fourdee/DietPi/issue ... -162580675

+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.
Post Reply