[haiku-bugs] Re: [Haiku] #5633: [PATCH] Add OPTION_DOMAIN_NAME to DHCP request parameter list

  • From: "vegardw" <trac@xxxxxxxxxxxx>
  • Date: Fri, 26 Mar 2010 11:34:54 -0000

#5633: [PATCH] Add OPTION_DOMAIN_NAME to DHCP request parameter list
--------------------------------+-------------------------------------------
 Reporter:  vegardw             |       Owner:  axeld         
     Type:  enhancement         |      Status:  new           
 Priority:  normal              |   Milestone:  R1            
Component:  Servers/net_server  |     Version:  R1/Development
 Keywords:  DHCP                |   Blockedby:                
 Platform:  All                 |    Blocking:                
--------------------------------+-------------------------------------------

Comment(by vegardw):

 I'm pretty new to DHCP myself, only started looking at it a couple of days
 ago. But it shouldn't have any side effects.

 According to the RFC the server must supply any parameters in the list it
 can provide, and omit any parameters it cannot provide. So a server that
 isn't configured with a domain name should simply return the other options
 in the list, and omit domain name. So it shouldn't have any negative side
 effects. The dhcp-client in linux requests several options that the dhcp
 server doesn't supply, and the only thing that happens is that those
 aren't sent from the server.

 So it's more a case of the variable name being a bit misleading in my
 opinion.

 The domain name is the local domain / the first search domain that the
 resolver tries when looking up a name. On my local network at home I use
 the domain intra.vegardw.com, and for example my linux box is called
 debian1.intra.vegardw.com. With the domain field set to intra.vegardw.com
 I can just do 'ping debian1' to ping the server instead of 'ping
 debian1.intra.vegardw.com'. So mostly it is for being able to address the
 hosts in the local domain by using just the hostname instead of the fqdn.

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

Other related posts: