Changeset 7076 in genesis for tools/iris


Ignore:
Timestamp:
Jul 26, 2009, 9:19:07 PM (15 years ago)
Author:
rick
Message:

Reverted nameserver order to previous variant which is a bit more reliable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/iris/wleiden.pl

    r7036 r7076  
    240240  $output .=
    241241  "search wleiden.net.\n" .
     242  "# Try local (cache) first \n" .
     243  "nameserver 127.0.0.1\n" .
     244  "# Direct neighboors\n" .
     245  "\n";
     246
     247  foreach my $if (sort keys %config) {
     248    if( exists $POINT_TO_POINT{$if} ) {
     249      foreach my $ip ($POINT_TO_POINT{$if}) {
     250        $output .= "nameserver $ip # $DESC{$if}\n";
     251      };
     252    };
     253  };
     254
     255  $output .=
     256  "\n" .
     257  "# Last resort/backup remote nameservers \n" .
    242258  "nameserver 172.17.8.68    # proxy1\n" .
    243259  "nameserver 172.17.143.4   # proxy2\n" .
    244260  "nameserver 172.20.128.98  # proxy3\n" .
    245261  "nameserver 172.16.2.254   # proxy4\n" .
    246   "nameserver 172.19.168.66  # proxy5\n" .
    247   "\n" .
    248   "# \n" .
    249   "# Legacy nameservers\n" .
    250   "nameserver 127.0.0.1\n" .
    251   "\n";
    252 
    253   foreach my $if (sort keys %config) {
    254     if( exists $POINT_TO_POINT{$if} ) {
    255       foreach my $ip ($POINT_TO_POINT{$if}) {
    256         $output .= "nameserver $ip # $DESC{$if}\n";
    257       };
    258     };
    259   };
     262  "nameserver 172.19.168.66  # proxy5\n";
     263
    260264  return($output);
    261265};
Note: See TracChangeset for help on using the changeset viewer.