First up disable a package called "tmdns" for some reason it's enabled
by default.. don't actually remove the package, as every time you
configure your network with drakconf, drakconf will reinstall the
package..

The commands to disable it..

"service tmdns stop"    
"chkconfig --del tndns"

Next edit a file /etc/sysconfig/network-scripts/ifcfg-eth0
and place in there
PEERDNS=no

for more help to know what you can place in those ifcfg files.. have a
look at the man file for ifcfg..
"man ifcfg"

I hope this is a help

Cheers
Mark


On Tue, 2003-09-23 at 10:17, Graeme J Hosking wrote:
> Hi,
> 
>   I wonder if someone can tell me how to prevent the contents of my
>   /etc/resolv.conf from being re-written every time my NIC is brought
>   up? Or at least, allow me to keep entries in that file that I have
>   put there manually.
> 
>   Basically, the NIC connected to my cable modem has to use DHCP to
>   get its address, etc, etc. But I also run a caching DNS server on
>   that machine. Every time the interface is brought up it will
>   re-write /etc/resolv.conf with settings it gets from my ISP's DHCP
>   server, overwriting my entry to point to the local instance of BIND
>   for DNS lookups. This is frustrating, as the result is that all the
>   machines on my network use my self-hosted DNS server except the
>   machine hosting the DNS server. :)
> 
>   I've read about adding the -R switch to dhcpcd but I wondered if
>   there is another solution? I'm using mdk9.1.
> 
>   Many thanks,
> 
>   Graeme.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to