[lml] push by schlomo....@gmail.com - Bugfix: DNS domain now correctly appended, this was a leftover from th... on 2011-09-26 16:21 GMT

0 views
Skip to first unread message

l...@googlecode.com

unread,
Sep 26, 2011, 12:22:22 PM9/26/11
to lml-...@googlegroups.com
Revision: 20095dbc8e14
Author: Schlomo Schapiro <l...@schlomo.schapiro.org>
Date: Mon Sep 26 09:21:09 2011
Log: Bugfix: DNS domain now correctly appended, this was a leftover
from the big CONFIG refactoring.
http://code.google.com/p/lml/source/detail?r=20095dbc8e14

Modified:
/web/www/boot/lml/pxelinux.pl

=======================================
--- /web/www/boot/lml/pxelinux.pl Tue Jul 12 02:42:50 2011
+++ /web/www/boot/lml/pxelinux.pl Mon Sep 26 09:21:09 2011
@@ -254,7 +254,7 @@
$dhcp_hosts .= "host $u".($count>0?"-$count":"")." { \n";
$dhcp_hosts .= "\thardware ethernet $m;\n";
my $hostname = $LAB->{HOSTS}->{$u}->{HOSTNAME}.($count>0?"-$count":"");
- $dhcp_hosts .= "\toption host-name
\"$hostname".(exists($LAB->{DHCP}->{APPENDDOMAIN})?".".$LAB->{DHCP}->{APPENDDOMAIN}:"")."\";\n";
+ $dhcp_hosts .= "\toption host-name
\"$hostname".(exists($CONFIG{dhcp}{appenddomain})?".".$CONFIG{dhcp}{appenddomain}:"")."\";\n";
# the following forces the dhcpd to update the DNS records even if the
client did NOT send a hostname!!!
# took me full day to figure that out :-(
$dhcp_hosts .= "\tddns-hostname \"$hostname\";\n";

Reply all
Reply to author
Forward
0 new messages