]> git.sesse.net Git - nms/blobdiff - config/make-dhcpd.pl
Enable netboot for all.
[nms] / config / make-dhcpd.pl
index 876e5cba5c9ea3b4a6254bc82ed02377e987d983..ddce2c50a59db283a4d3937d3cf9dc9c07dad163 100755 (executable)
@@ -1,6 +1,9 @@
 #! /usr/bin/perl -w
 use strict;
 
+my $date = `date --rfc-2822`;
+chomp $date;
+
 my @nets = ();
 open NAMES, "switches.txt"
        or die "switches.txt: $!";
@@ -15,11 +18,15 @@ while (<NAMES>) {
 }      
 
 print <<"EOF";
-# Autogenerated by make-dhcpd.pl. Do not edit manually!
+# Autogenerated by make-dhcpd.pl at $date. Do not edit manually!
 
 option domain-name "tg07.gathering.org";
 option domain-name-servers 87.76.254.2, 87.76.255.2;
 
+# Netboot FTW
+next-server 87.76.255.18;
+filename "/pxelinux.0";
+
 ddns-update-style interim;
 omapi-port 7911;
 
@@ -40,7 +47,7 @@ subnet 87.76.254.0 netmask 255.255.255.0 {
 subnet 87.76.255.0 netmask 255.255.255.0 {
 }
 
-zone 0.194.in-addr.arpa. {
+zone 76.87.in-addr.arpa. {
        primary 127.0.0.1;
        key DHCP_UPDATER;
 }