Changeset 4105 in genesis for tools


Ignore:
Timestamp:
Mar 18, 2005, 1:02:11 AM (20 years ago)
Author:
rick
Message:

Even more generic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/wleiden.pl

    r4091 r4105  
    6969  my $output = genHeader("#");
    7070  $output .=
    71   "option domain-name \"wLeiden.NET\";\n" .
     71  "option domain-name \"$domain\";\n" .
    7272  " \n" .
    7373  "default-lease-time 7200;\n" .
     
    124124  "options {\n" .
    125125  "  directory \"/var/db/namedb\"\;\n" .
    126   "  forwarders {\n" .
    127   "    172.17.8.68;   // proxy1\n" .
    128   "    172.17.143.4;  // proxy2\n" .
    129   "    172.20.128.98; // proxy3\n" .
     126  "  forwarders {\n";
     127  foreach my $forward (@forwarder) {
     128    $output .= "$forward;\n";
     129  };
    130130  "  };\n" .
    131131  "};\n" .
     
    174174  my $masterNotUsed = master_ipNotUsed();
    175175  $output.=
    176   "hostname=\"$nodetype$nodename.wLeiden.NET\"\n" .
     176  "hostname=\"$nodetype$nodename.$domain\"\n" .
    177177  "location=\"$location\"\n" .
    178178  "\n";
Note: See TracChangeset for help on using the changeset viewer.