Howto add search domains to resolv.conf using dhcpd

If you want to be able to search multiple domain names on a desktop that uses DHCP then you need to make sure those domain names get added to /etc/resolv.conf. The way to do that is to add the DHCP option domain-search specifying the list of domain names to /etc/dhcp/dhcpd.conf:

Please note that the search list is limited to six domains with a total of 256 characters.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.