Opened 15 years ago

Closed 15 years ago

#5633 closed enhancement (fixed)

[PATCH] Add OPTION_DOMAIN_NAME to DHCP request parameter list

Reported by: vegardw Owned by: axeld
Priority: normal Milestone: R1
Component: Servers/net_server Version: R1/Development
Keywords: DHCP Cc:
Blocked By: Blocking:
Platform: All

Description

The following patch adds OPTION_DOMAIN_NAME to the DHCP request parameter list. The DHCP server on my linux box (dhcp3-server) doesn't send the domain name option unless it's requested by the client.

Attachments (1)

DHCP_request_domain.patch (459 bytes ) - added by vegardw 15 years ago.

Download all attachments as: .zip

Change History (5)

by vegardw, 15 years ago

Attachment: DHCP_request_domain.patch added

comment:1 by stippi, 15 years ago

Can this patch have any negative side effects? I am just wondering because it's called "required flags" in the code, but the domain name is perhaps not strictly required. Please excuse my ignorance with regards to networking, but what is the domain name good for?

comment:2 by vegardw, 15 years ago

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.

comment:3 by axeld, 15 years ago

Status: newin-progress

comment:4 by axeld, 15 years ago

Resolution: fixed
Status: in-progressclosed

Applied in hrev35956, thanks!

Note: See TracTickets for help on using tickets.