Multiple DNS Search Suffixes in dhcpd.conf

So this a quick post because I spent a few hours resolving this issue and wanted to share. The DHCP option domain-search (code 119) is used to specify the DNS domain search list (i.e. “search” in /etc/resolv.conf) but it’s not clearly stated the format for dhcpd.conf. After trying many different combinations I finally nailed it down:

subnet netmask {
    option domain-name "";
    option domain-search "", "", "";
    option domain-name-servers;
    option routers;

So the format is: option domain-search “SUFFIX 1”, “SUFFIX 2”, …, “SUFFIX N”;

–The IT Department


6 thoughts on “Multiple DNS Search Suffixes in dhcpd.conf

  1. On a related note, if you’re trying to supersede this setting in your dhclient.conf, so that you end up with multiple domain-search entries that supersede the ones handed out by the dhcp server, the client-side syntax is different:

    supersede domain-search “”;

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s