Linux DHCP: Supersede/overload client config

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1483
Joined: Fri Aug 29, 2003 8:39 pm

Linux DHCP: Supersede/overload client config

Post 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.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply