#!/usr/local/bin/perl # edit_soa.cgi # Display the SOA for an existing master zone require './bind8-lib.pl'; &ReadParse(); $zone = &get_zone_name($in{'index'}, $in{'view'}); $dom = $zone->{'name'}; &can_edit_zone($zone) || &error($text{'master_ecannot'}); $access{'params'} || &error($text{'master_esoacannot'}); $desc = &ip6int_to_net(&arpa_to_ip($dom)); &ui_print_header($desc, $text{'master_params'}, ""); @recs = &read_zone_file($zone->{'file'}, $dom); foreach $r (@recs) { $soa = $r if ($r->{'type'} eq "SOA"); $defttl = $r if ($r->{'defttl'}); } $v = $soa->{'values'}; # form for editing SOA record print "
\n"; &ui_print_footer("edit_master.cgi?index=$in{'index'}&view=$in{'view'}", $text{'master_return'});