RedHat : Add a DNS search domain to your generated resolv.conf

Sometime you need add a search DNS domain to your resolv.conf but it’s generated by dhclient-script. So create or modify¬†/etc/dhcp/dhclient-eth0.conf to add the new domain.

interface "eth0" {
 supersede domain-name "searchdomain.1 searchdomain.2 searchdomain.3";
}

Leave a Reply

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