On Tue, 12 Jul 2005 17:51:45 +0100, Andy Richardson wrote:
> Hi folks quick question,
>
> Is there any way to automatically populate resolv.conf with more than
> one search domain.
Yes.
>
> Currently it is given the value of the domain-name option from
> dhcpd.conf, but I need the resolver to search two domains for a hostname.
my preference was to remove the search line to speed up all the
external values.
do a
man (your_dhcp_client_daemon_here)
to see if it indicats a file which runs after it obtains a lease.
The script would be as simple as
echo "search whatever you like here" > /tmp/resolv.conf
grep -v search /etc/resolv.conf >> /tmp/resolv.conf
/bin/cp /tmp/resolv.conf /etc/resolv.conf
|