#!/usr/local/bin/perl require './dns-lib.pl'; &header("BIND 4 DNS Server", "", undef, 1, 1); print "
The BIND 4 DNS server $config{'named_pathname'}\n"; print "could not be found on your system. Maybe it is not installed,\n"; print "or your BIND 4 module\n"; print "configuration is incorrect.
\n"; print "
The server $config{'named_pathname'} appears to\n"; print "be BIND 8. Maybe your should use the\n"; print "BIND 8 server module instead.
\n"; print "
The server $config{'named_pathname'} appears to\n"; print "be BIND 8. Maybe your should use the\n"; print "BIND 8 server module instead.
\n"; print "
The primary configuration file\n"; print "$config{named_boot_file} does not exist,\n"; print "or is empty. Create it?
\n"; print "
\n"; print "\n"; } else { print &ui_subheading("Existing DNS Zones"); foreach $z (@zlist) { next if (!&can_edit_zone(\%access, $z->{'values'}->[0])); if ($z->{'name'} eq "primary") { push(@zlinks, "edit_master.cgi?index=$z->{'index'}"); push(@ztitles, &arpa_to_ip($z->{'values'}->[0])); push(@zicons, "../bind8/images/master.gif"); push(@ztypes, "Master"); } else { push(@zlinks, "edit_slave.cgi?index=$z->{'index'}"); push(@ztitles, &arpa_to_ip($z->{'values'}->[0])); push(@zicons, "../bind8/images/slave.gif"); push(@ztypes, "Slave"); } $len++; } # sort list of zones @zorder = sort { $ztitles[$a] cmp $ztitles[$b] } (0 .. $len-1); @zlinks = map { $zlinks[$_] } @zorder; @ztitles = map { $ztitles[$_] } @zorder; @zicons = map { $zicons[$_] } @zorder; @ztypes = map { $ztypes[$_] } @zorder; if ($config{'show_list'}) { # display as list $mid = int((@zlinks+1)/2); print "
| \n"; &zones_table([ @zlinks[0 .. $mid-1] ], [ @ztitles[0 .. $mid-1] ], [ @ztypes[0 .. $mid-1] ]); print " | \n"; if ($mid < @zlinks) { &zones_table([ @zlinks[$mid .. $#zlinks] ], [ @ztitles[$mid .. $#ztitles] ], [ @ztypes[$mid .. $#ztypes] ]); } print " |
\n"; if ($access{'defaults'}) { # Display form to set the defaults for new zones &get_zone_defaults(\%zd); print "
| Zone | Type |
| [$i]\">$_[1]->[$i] | \n"; print "$_[2]->[$i] | \n"; print "