Software projects/OS/Slackware/Advanced usage/DHCP server - Pandora Wiki

Dnsmask and dhcpd

  • I never used Dnsmask. Seems it's great.
  • dhcpd is the most common dhcp server.


  • Check google for "dhcpd.conf examples".
  • Here's a simple and understandable configuration:
# dhcpd.conf
option domain-name "nom_choisi";

option subnet-mask;

option domain-name-servers ,;
ddns-update-style ad-hoc;

option routers;

default-lease-time 86400;

max-lease-time 604800;

subnet netmask {
option broadcast-address;

#host PC-1 {
#hardware ethernet 00:00:4C:72:86:68;
  • Edit /etc/dhcpd.conf as you need.
  • Note that the network interface has to be configured before running dhcpd on it. So you'll have to comment or remove
/etc/rc.d/rc.networkmanager start

from /etc/rc.d/rc.local , and put something like

ifconfig eth0

instead, depending on which interface/network address you plan to use.

  • Run dhcpd eth0, dhcpd usb0 or dhcpd usb1 depending which interface you intend to use to deliver dhcp service.
  • Once you got a satisfying configuration, put the command in /etc/rc.d/rc.local , after the fixed adress.