Project

General

Profile

Actions

Bug #427

closed

DHCP Hostname Not Sent

Added by Koaps Freeman over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
03/15/2010
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
1.2.3
Affected Architecture:

Description

I'm listing this as a bug but cause I think the name should be sent but I guess it could be a feature to some.

When setting reserved leases in DHCP, the hostname isn't sent as part of the lease.

This can be fixed but adding the following to the services.inc

298                                 if ($sm['ipaddr'])
299 $dhcpdconf .= " fixed-address {$sm['ipaddr']};\n";
300
301 + if ($sm['hostname'])
302 + $dhcpdconf .= " option host-name {$sm['hostname']};\n";
303
304 $dhcpdconf .= "}\n";
305 $i
+;

I need it for spinning up virtual servers and setting the host can be overridden on the client by setting a hostname not blank or localhost/localhost.localdomain if it is not wanted.

Actions

Also available in: Atom PDF