X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=config%2Fmake-dhcpd.pl;h=3da7111372d9d43ec784ddc34ceeac09b62bd3de;hb=b9ada83376f74d9e3653ae2e9bab0d6b49d4abc9;hp=876e5cba5c9ea3b4a6254bc82ed02377e987d983;hpb=0b85ec00a69ec9ee942b426b8d92c4effca175d9;p=nms diff --git a/config/make-dhcpd.pl b/config/make-dhcpd.pl index 876e5cb..3da7111 100755 --- a/config/make-dhcpd.pl +++ b/config/make-dhcpd.pl @@ -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 () { } 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; @@ -38,9 +45,10 @@ subnet 87.76.254.0 netmask 255.255.255.0 { # Server-nett subnet 87.76.255.0 netmask 255.255.255.0 { + range 87.76.255.240 87.76.255.254; } -zone 0.194.in-addr.arpa. { +zone 76.87.in-addr.arpa. { primary 127.0.0.1; key DHCP_UPDATER; }