The new domain-search option is not used to populate the search option in /etc/resolv.conf; currently the domain is (mis)used as search option. Reproducible: Always Steps to Reproduce: 1. Configure the dhcp server with option domain-name "foo.example.com" and option domain-search "foo.example.com example.com" 2. Acquire a lease Actual Results: /etc/resolv.conf contains "search foo.example.com" Expected Results: /etc/resolv.conf should contain "domain foo.example.com" and "search foo.example.com. example.com." I will try to attach a patch and new ebuild using this patch.
Created attachment 207787 [details, diff] Patch to add domain-search handling to /sbin/dhclient-script
Created attachment 207789 [details] ebuild which uses attached patch
Thanks for submitting your patch! Assigning to dhcp maintainers.
Please update to apply against 3.1.3_p1 and 4.1.x. Or note if it's not required anymore.
afaict, new_domain_search is supported in dhcp-4.2.4