There are a few dozen DHCP clients behind this campus IPFire network.
Some have fixed leases like servers, etc.
They want IPFire to use the ISP-assigned DNS server as much as possible. It is the default.
How do you make a IPFire assign Cloudflare as the DNS for a select group of 8 DHCP clients?
And leave the rest of the DHCP clients as is - IPFire as their DNS.
I am not aware of a way to do this in IPFire. You could set the DNS on those select few DHCP clients to Cloudflare, then have IPFire manage DNS for the rest with the ISP default.
Yeah, we are already doing that on a few DHCP clients.
But on some devices we have to change them from dynamic to static IP addresses, in order to specify (Cloudflare as) the non-default DNS. That involves managing address blocks in an ad hoc manner. It is easier to do it all within IPFire.
I am aware of and use the firewall rule to redirect DNS to IPFire for all users. What I meant was I was not aware of splitting this up so that some clients fall under this rule while other clients use whatever other DNS they want.
Probably if we do not use Force clients to use IPFire DNS Server, we can move (to the dhcpd.conf.local file) the configuration of the client’s static lease by adding option domain-name-servers.
Yes, it works fine without using IPFire’s DNS.
It’s in the file /var/ipfire/dhcp/dhcpd.conf.local (not dhcpd.local.conf)
You also need to remove the added entry from the dhcp.cgi page.