On Thu, 29 Mar 2007 20:54:34 +0600 "S. M. Ibrahim (Lavlu)" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]