Kodi Community Forum
how to change DNS servers when using DHCP? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: how to change DNS servers when using DHCP? (/showthread.php?tid=296238)



how to change DNS servers when using DHCP? - frumbert - 2016-11-08

I have DHCP and there is NO WAY to change the DNS servers on my router (also, DHCP is either ON or OFF, there's no way to configure anything about it like IP, range, etc). Terrible system, but there you go.

If I try to change the DNS server in the settings, I'm told "You may not change DNS servers when using the DHCP setting". Oh.

What's the way to do this? Just turn off DHCP and hope I don't collide with IP's on my lan?


RE: how to change DNS servers when using DHCP? - Prof Yaffle - 2016-11-08

Not really Kodi-related as that sounds much more like a core Linux issue, but...

When you set up DHCP, you set up a range of addresses (e.g. 192.168.1.100-192.168.1.254). Give non-DHCP systems static IP addresses outside of that range (e.g. < 192.168.1.100). Job done, no collisions, just the manual overhead of keeping track of systems and addresses.


RE: how to change DNS servers when using DHCP? - DarrenHill - 2016-11-08

Or you could just buy a Raspberry Pi, install DNS software on that and stick that on your network to act as your DNS server and switch the router server off completely.

A few links below for examples of how to set that up, but a quick search will show you many more examples:

https://www.theurbanpenguin.com/raspberry-pi-dns-server/
http://www.linux-magazine.com/Issues/2014/159/DHCP-and-DNS-on-Rasp-Pi
http://workshop.botter.ventures/2013/10/01/how-to-setup-a-dns-server-with-powerdns-on-raspberry-pi/


RE: how to change DNS servers when using DHCP? - speedwell68 - 2016-11-10

(2016-11-08, 11:40)frumbert Wrote: I have DHCP and there is NO WAY to change the DNS servers on my router (also, DHCP is either ON or OFF, there's no way to configure anything about it like IP, range, etc). Terrible system, but there you go.

If I try to change the DNS server in the settings, I'm told "You may not change DNS servers when using the DHCP setting". Oh.

What's the way to do this? Just turn off DHCP and hope I don't collide with IP's on my lan?

Which distro are you running?


RE: how to change DNS servers when using DHCP? - nickr - 2016-11-10

(2016-11-08, 12:07)DarrenHill Wrote: Or you could just buy a Raspberry Pi, install DNS software on that and stick that on your network to act as your DNS server and switch the router server off completely.

A few links below for examples of how to set that up, but a quick search will show you many more examples:

https://www.theurbanpenguin.com/raspberry-pi-dns-server/
http://www.linux-magazine.com/Issues/2014/159/DHCP-and-DNS-on-Rasp-Pi
http://workshop.botter.ventures/2013/10/01/how-to-setup-a-dns-server-with-powerdns-on-raspberry-pi/
that's what I did. Works well.