aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dhcp6-nets.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dhcp6-nets.pl')
-rwxr-xr-xtools/dhcp6-nets.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/dhcp6-nets.pl b/tools/dhcp6-nets.pl
new file mode 100755
index 0000000..3866ac5
--- /dev/null
+++ b/tools/dhcp6-nets.pl
@@ -0,0 +1,12 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+while(<STDIN>){
+ my ($row, $v6) = split;
+ $v6 =~ s/::1/::/;
+
+ print "subnet6 $v6 {\n";
+ print "\toption domain-name \"$row.tg13.gathering.org\";\n";
+ print "}\n\n";
+}