[haiku-bugs] Re: [Haiku] #5634: [net_server] after r35941 all entries in resolv.conf apears twice

  • From: "vegardw" <trac@xxxxxxxxxxxx>
  • Date: Thu, 25 Mar 2010 21:34:09 -0000

#5634: [net_server] after r35941 all entries in resolv.conf apears twice
--------------------------------+-------------------------------------------
 Reporter:  diver               |       Owner:  axeld         
     Type:  bug                 |      Status:  new           
 Priority:  normal              |   Milestone:  R1            
Component:  Servers/net_server  |     Version:  R1/Development
 Keywords:                      |   Blockedby:                
 Platform:  All                 |    Blocking:                
--------------------------------+-------------------------------------------

Comment(by vegardw):

 The DHCP client writes to resolv.conf both when receiving DCHP_OFFER and
 DHCP_ACK from the server, that's why everything is listed twice.


 The way I read RFC2131  (http://tools.ietf.org/html/rfc2131#section-3.1)
 it seems we should only write resolv.conf when receiving DHCP_ACK from the
 server, not when receiving DHCP_OFFER. It's DHCP_ACK that contains the
 final configuration from the server.

 According to the RFC you can receive DHCP_OFFER from several servers, but
 the settings doesn't take effects until you have sent a DHCP_REQUEST to
 your server of choice and received DHCP_ACK from the server.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/5634#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: