PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > dhcp problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

dhcp problem

Réponse
 
LinkBack Outils de la discussion
Vieux 29/03/2007, 16h00   #1
S. M. Ibrahim (Lavlu)
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut dhcp problem

My isp is providing me the ip using DHCP. everything fine. But they are
sending 3 nameserver. And first DNS server is not responding. SO it take
time to switch to the secound dns. So, it's making problem (slow down).
I want to keep fix (will not updated or replace by dhcp) the
/etc/resolv.conf with only 2 nameserver (that are working).
Any idea, how to do this ?

--
S. M. Ibrahim (Lavlu)
Home page: http://lavluda.tripod.com
Blog: http://lavluda.tk
Yahoo!! ID: lavluda MSN ID: lavluda Skype : lavluda

  Réponse avec citation
Vieux 29/03/2007, 16h20   #2
Celejar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: dhcp problem

On Thu, 29 Mar 2007 20:54:34 +0600
"S. M. Ibrahim (Lavlu)" <smibrahim@gmail.com> wrote:

> My isp is providing me the ip using DHCP. everything fine. But they are
> sending 3 nameserver. And first DNS server is not responding. SO it take
> time to switch to the secound dns. So, it's making problem (slow down).
> I want to keep fix (will not updated or replace by dhcp) the
> /etc/resolv.conf with only 2 nameserver (that are working).
> Any idea, how to do this ?


>From 'man dhclient':


> The supersede statement
>
> supersede [ option declaration ] ;
>
> If for some option the client should always use a locally-configured
> value or values rather than whatever is supplied by the server, these
> values can be defined in the supersede statement.


So if you're using dhclient you could try something like:

supersede domain-name-servers a.b.c d.e.f

Also from the manpage:

> The request statement
>
> request [ option ] [, ... option ];
>
> The request statement causes the client to request that any server
> responding to the client send the client its values for the specified
> options. Only the option names should be specified in the request
> statement - not option parameters. By default, the DHCP server
> requests the subnet-mask, broadcast-address, time-offset, routers,
> domain-name, domain-name-servers and host-name options.


So you could write a request line and omit 'domain-name-servers'.

I have not tried any of this.

HTH,
Celejar


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/03/2007, 17h40   #3
Joe Hart
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: dhcp problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Celejar wrote:
> On Thu, 29 Mar 2007 20:54:34 +0600
> "S. M. Ibrahim (Lavlu)" <smibrahim@gmail.com> wrote:
>
>> My isp is providing me the ip using DHCP. everything fine. But they are
>> sending 3 nameserver. And first DNS server is not responding. SO it take
>> time to switch to the secound dns. So, it's making problem (slow down).
>> I want to keep fix (will not updated or replace by dhcp) the
>> /etc/resolv.conf with only 2 nameserver (that are working).
>> Any idea, how to do this ?

>
>>From 'man dhclient':

>
>> The supersede statement
>>
>> supersede [ option declaration ] ;
>>
>> If for some option the client should always use a locally-configured
>> value or values rather than whatever is supplied by the server, these
>> values can be defined in the supersede statement.

>
> So if you're using dhclient you could try something like:
>
> supersede domain-name-servers a.b.c d.e.f
>
> Also from the manpage:
>
>> The request statement
>>
>> request [ option ] [, ... option ];
>>
>> The request statement causes the client to request that any server
>> responding to the client send the client its values for the specified
>> options. Only the option names should be specified in the request
>> statement - not option parameters. By default, the DHCP server
>> requests the subnet-mask, broadcast-address, time-offset, routers,
>> domain-name, domain-name-servers and host-name options.

>
> So you could write a request line and omit 'domain-name-servers'.
>
> I have not tried any of this.
>
> HTH,
> Celejar
>
>

I had a similar problem. The file /etc/dhcp3/dhclient.conf is the file
that controls resolv.conf (at least on this system). You can specify
which DNS is used first by using

prepend domain-name-servers xxx.xxx.xxx.xxx;

replacing of course the x's with the ip address of the DNS. This line
is already present using 127.0.0.1 but is commented out.

I have tried it, and it works.

Joe
- --
Registerd Linux user #443289 at http://counter.li.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGC+tsiXBCVWpc5J4RArQdAKDO10MEfaW4p/3oBrJbWO3NplhEtQCghLNz
GZiR4zMqeuWw4Qy33w6LmjY=
=3+HX
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 04/04/2007, 12h10   #4
S. M. Ibrahim (Lavlu)
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: dhcp problem

>
> I had a similar problem. The file /etc/dhcp3/dhclient.conf is the file
> that controls resolv.conf (at least on this system). You can specify
> which DNS is used first by using
>
> prepend domain-name-servers xxx.xxx.xxx.xxx;
>
> replacing of course the x's with the ip address of the DNS. This line
> is already present using 127.0.0.1 but is commented out.
>
> I have tried it, and it works.



Yea, it's working, thanks.


Joe
> - --
> Registerd Linux user #443289 at http://counter.li.org/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGC+tsiXBCVWpc5J4RArQdAKDO10MEfaW4p/3oBrJbWO3NplhEtQCghLNz
> GZiR4zMqeuWw4Qy33w6LmjY=
> =3+HX
> -----END PGP SIGNATURE-----
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>



--
S. M. Ibrahim (Lavlu)
Web Application Developer
somewherein...
Home page: http://lavluda.tripod.com
Blog: http://lavluda.tk
Yahoo!! ID: lavluda MSN ID: lavluda Skype : lavluda

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 20h16.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15772 seconds with 12 queries