[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 02540) Re: turning off Ipv4 support
On Mon, 15 Sep 2003, Sunil Arora wrote:
> And one more query:
>
> I have a DNS server running on a v4 node. I have to
> edit its /etc/resolve.conf to tell it tht it is the
> nameserver for itself. But tht gets wiped out
> eveyrtime this machine
> boots up.
>
> So how can i add tht entry permanently in
> /etc/resolve.conf??
are you using dhcp?
on my machine, I use dhcp to configure my external interface, and by
default that overwrites /etc/resolv.conf, you can disable that (depending
on your dhcp client of course) with something like the following:
(from my /etc/rc.d/rc.inet1 on slackware, the -t 10 is for a shorter
timeout if the dhcp server can't be reached):
/sbin/dhcpcd -R -t 10
and from the dhcpcd manpage:
-R Prevents dhcpcd from replacing existing /etc/resolv.conf file.
I looked into this myself once I had set up my own DNS server, and noticed
the same trouble you're having.
hope this helps. :)