From: Kenneth P. <sh...@we...> - 2001-07-20 06:06:04
|
I just noticed that webmin doesn't handle SRV records, so I started to look at what would be needed to add support for them. I grepped all the files in the module for "HINFO" to see where changes would need to be made, and noticed a slight asymetry in the edit_{master,slave}.cgi files. Observe the region where @rcodes is getting populated, and the variations in the two scripts. This section just begs for factoring out the common logic into a library routine to avoid the common logic getting out of sync between the two files. I'm trying to figure out where to hook in dynamic updates, but for now I'd recommend NOT writing a zone file for an existing zone that has allow-update in its options. I figure if this option is present for the zone, the record-editing scripts should invoke nsupdate instead of writing a new zone file. Updating the reverse zone complicates this, as either or both zones could be dynamic. For instance, my DHCP server updates both a forward and reverse zone in my DNS. In this case I'd need to populate the webmin zone display from a zone transfer, not from a file, because the file is likely to be out-of-date with respect to the DNS server's internal state. So I'll have to hook in some code to use named-xfer if allow-update is present. Ken mailto:sh...@we... http://www.sewingwitch.com/ken/ [If answering a mailing list posting, please don't cc me your reply. I'll take my answer on the list.] |