From: Luke W. <lu...@ad...> - 2003-10-01 07:44:15
|
Wow Jamie thankyou....two other questions a) is this a good list for virtualmin questions too? :) b) With setting up virtualmin users etc, is it possible to auto-update the backup MX server (so when the pri MX goes down the users still get their mail on the backup) Thanks again :) Luke ----------- Luke Worthy <lu...@ad...> wrote .. > I have a question regarding changing some of the DNS module in webmin. > > when you create a new master zone, and leave the option "Records file" > as > automatic, it makes a file called "zonename.hosts" in the default directory > specified in the named.conf. I have been asked to change this to the naming > convention we use here in our office "pri.zonename". > > I have found it to be quite difficult as I am not much of a perl programmer, > but have hacked a few things together in the past. > > Now I found what I am guessing is the line in question in create_master.cgi, > so I changed it from: > > $in{'file'} = $base."/$in{'zone'}.hosts"; > > to: > > $in{'file'} = $base."/pri.$in{'zone'}"; > > and: > $in{'file'} = $base."/pri.'$in{'zone'}'"; > > and have NFI - it still uses the filename "zonename.hosts" - I would have > at > least expected an error...... There is actually way to do this without needing to make any code changes at all :-) On the main page of the BIND module, click on Module Config and change the 'Format for the name of forward zone files' to 'pri.ZONE'. > Also I have been asked to setup our DNS so that when someone enters in > the > master information on one server, it automatically creates the entries > on the > backup server, without having to do any more "clicking". Any ideas about > how > to do this? > > At the moment I have to go into the backup server and change the named.conf > file to add in the requested entry :) This is actually possible as well.. You need to install webmin on the slave server, and then add it in the Webmin Servers Index module on the master server, with the admin or root username and password specified. Then when creating a master zone, you'll have the option to add it as slave to the slave server as well. There is even a Module Config page option to set the default server for this option, and a button on the main page to apply changes on the slave server as well. - Jamie |