On 2009-04-06, powah <(E-Mail Removed)> wrote:
>
>
> Before reboot,
> $ cat /etc/resolv.conf
> ; generated by /sbin/dhclient-script
> nameserver 172.20.10.22
> search mycomp.local myhost.com
>
> After reboot, the search path in resolv.conf is overwritten by the
> hostname.
> Please help to setup the search path properly.
> Thanks.
> $ cat /etc/resolv.conf
> ; generated by /sbin/dhclient-script
> nameserver 172.20.10.22
> search penguin
>
> I do not want to apply the brute force method:
> # chattr +i /etc/resolv.conf
>
> $ cat /etc/dhclient.conf
> request subnet-mask, broadcast-address, routers, domain-name, domain-
> name-servers, host-name, nis-domain, nis-servers;
>
> My computer use FC6:
> $ uname -a
> Linux penguin 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006
> i686 i686 i386 GNU/Linux
Change /etc/dhclient.conf not to request domain-name, or request
domain-search and configure the dhcp server to provide the search path,
or create a dhclient-exit-hook script. Ubuntu uses scripts in
/etc/dhcp3/dhclient-exit-hooks.d; Fedora may be different. By the way,
you might consider upgrading to a newer version of Fedora.
|