|
Home > Archive > alt.os.linux > July 2002 > Problem with resolv.conf
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Problem with resolv.conf
|
|
|
| Hy,
Each time i restart my linux server, one of my two network interface working
as a dhcp client is updating the file resolv.conf to update the dns server
and the search domain.
The problem is that a have a DNS server localy, and i would like to set it
definitively in the resolv.conf.
I can probably configure the dhcp client but how.
Thanks for your help
Regards
| |
| Bit Twister 2002-07-28, 6:25 am |
| On Sun, 28 Jul 2002 13:07:47 +0200, Geff wrote:
> Hy,
>
> Each time i restart my linux server, one of my two network interface working
> as a dhcp client is updating the file resolv.conf to update the dns server
> and the search domain.
> The problem is that a have a DNS server localy, and i would like to set it
> definitively in the resolv.conf.
>
> I can probably configure the dhcp client but how.
Please read http://www.tuxedo.org/~esr/faqs/smart-questions.html
Does man dhcp_client_name_here provide a tip.
Snippet from man dhcpcd
/etc/dhcpc/dhcpcd-<interface>.exe
file which dhcpcd will try to execute whenever it detects a change in
IP address.
You create the .exe with whatever you like.
| |
| Nick Adams 2002-07-28, 7:25 pm |
| How is that a silly question? You were able to answer it without any extra
information.
"Bit Twister" <BitTwister@localhost.localdomain> wrote in message
news:slrnak7lrs.2ao.BitTwister@wb.invalid...
> On Sun, 28 Jul 2002 13:07:47 +0200, Geff wrote:
> > Hy,
> >
> > Each time i restart my linux server, one of my two network interface
working
> > as a dhcp client is updating the file resolv.conf to update the dns
server
> > and the search domain.
> > The problem is that a have a DNS server localy, and i would like to set
it
> > definitively in the resolv.conf.
> >
> > I can probably configure the dhcp client but how.
>
> Please read http://www.tuxedo.org/~esr/faqs/smart-questions.html
>
> Does man dhcp_client_name_here provide a tip.
>
>
> Snippet from man dhcpcd
>
> /etc/dhcpc/dhcpcd-<interface>.exe
> file which dhcpcd will try to execute whenever it detects a change in
> IP address.
>
> You create the .exe with whatever you like.
>
| |
| Joachim Feise 2002-07-29, 3:25 am |
| Geff wrote:
> Hy,
>
> Each time i restart my linux server, one of my two network interface working
> as a dhcp client is updating the file resolv.conf to update the dns server
> and the search domain.
> The problem is that a have a DNS server localy, and i would like to set it
> definitively in the resolv.conf.
>
> I can probably configure the dhcp client but how.
I'm using dhclient, and in my /etc/dhclient.conf, I have this line to make
sure that my DNS server is always the first in resolv.conf:
prepend domain-name-servers the-local-ip-address
-Joe
| |
|
| For those who wants the solution, i think i've found the best one :
Just put :
PEERDNS='no'
in ifcfg-ethX on a redhat 7.3 distrib.
My question should have been more detailed. But it was not so easy to find
the best solution to my problem.
I'll try to put more details next time !!!!
"Geff" <geff@yahoo.fr> a écrit dans le message de news:
3d43d087$0$2826$79c14f64@nan-newsreader-03.noos.net...
> Hy,
>
> Each time i restart my linux server, one of my two network interface
working
> as a dhcp client is updating the file resolv.conf to update the dns server
> and the search domain.
> The problem is that a have a DNS server localy, and i would like to set it
> definitively in the resolv.conf.
>
> I can probably configure the dhcp client but how.
> Thanks for your help
>
> Regards
>
>
>
|
|
|
|
|