Peter B. Steiger wrote:

> On Mon, 2005-09-12 at 20:57 +0000, Dienadel wrote:
>> I've read the dhcpd, dhclient.conf and dhcp-options man pages, but i
>> don't underestand in such way to make what i want. Curiosly, now, i know
>> to specificy the DNS if i were de server...
> 
> Assuming you use dhcpcd as the client, add -R as a parameter to that
> call in your ifup script (or whatever /etc/sysconfig file contains the
> call to dhcpcd).  That means "don't overwrite my resolv.conf with the
> one from the ISP".
> 
> I also keep a resolv.conf.bak copy handy so I can recover any time dhcp
> does manage to overwite the good resolv.conf.
> 

Hello again,

I don't use dhcpcd as cliend, dhclient instead, so i must edit the
dhclient.conf file. Googling again, and reading again the man page, i've
found the solution. Butl, i know i must learn more to make a good or elegant 
dhclient.conf file, as i have learned a lot.

the trick was add tyhe X.X.X.X DNS server i want in this line:

prepend domain-name-servers X.X.X.X;

This way, the first DNS server i use is X.X.X.X, followed by my ISP's ones.
This can be seen in the resolv.conf file.

Thanks

Dienadel
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to