Hello,
I found a missing file in Webmin 2.0
When i want to edit my primary zone files i'm getting errors:
404 File not found — /bind8/edit_primary.cgi?zone=<my zone=""></my>
It doesn't do this for the master type zones.
A find -m "edit_primary.cgi" turns up empty.
While the edit_master.cgi file is found where i expected it to be.
./usr/share/webmin/bind8/edit_master.cgi
Kind Regards,
Marco.
Can you post the block for this zone from your
/etc/named.conffile?There's no /etc/named.conf
There is /etc/bind/named.conf
That is a file that has includes to 3 other files.
I'm guessing that you need the/a zone block from named.conf.local?
An example:
zone "0xc007.nl" {
type primary;
file "/etc/bind/db.0xc007.nl";
};
I've been reading up on this, and it turns out that master/slave zone types are equivalents of primary/secondary zone types. It just depends on what terminology you've learned, Bind 9 servers accept both.
Just to be sure. From my point of view the name of the cgi script that gets called hinges on the term in the configuration file.
I think this is pretty dangerous and a field day for a hacker.
Last edit: Marco Caspers 2022-09-22
Thanks for pointing this out - it will be fixed in the next Webmin release.
Thanks for pointing this out - it will be fixed in the next Webmin release.