http://www.monkeynoodle.org/comp/reply-to/

[EMAIL PROTECTED] jack]$ cat /etc/sysconfig/network
NETWORKING=yes
FORWARD_IPV4=false
DHCP_HOSTNAME=chupacabra.monkeynoodle.org
HOSTNAME=chupacabra.monkeynoodle.org
DOMAINNAME=monkeynoodle.org
PEERDNS=yes
DHCP_TIMEOUT=5

peerdns does what you want. That dhcp timeout is a nice one too if you
do a lot of moving around with your laptop :-)

On Mon, 2003-09-22 at 17: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.
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...


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

Reply via email to