Page 1 of 1

Linux DHCP: Supersede/overload client config

Posted: Wed Feb 01, 2017 11:09 pm
by ^rooker
It's actually possible to have a running DHCP serving the usual config to all clients - and supersede/overload certain settings per-client on GNU/Linux systems (Debian-based ones at least)

The config file for this is:
/etc/dhcp/dhclient.conf

For example, you can supersede the domain-name:

Code: Select all

supersede domain-name "mysuperdomain.local";
Or prepend a different domain name server (DNS):

Code: Select all

prepend domain-name-servers 192.168.1.208;
And all kinds of other things, too! :)
More information in the man page of "dhclient.conf(5)"

Might come in handy.