Add dns by cgi script or other

You can create DNS by any method you wish; DA runs a standard BIND instance. You'll be responsible for running as either root or the named user depending on how your server is configured, and adding the correct line to named.conf and also the correct zone file, and for restarting BIND when you're done.

Jeff
 
I dont see how this would be possible with a cgi script that is hosted by apache as apache is run as a non root user. Unless you were to design some sort of perl daemon that ran as root user.
 
It depends how insecure you want to be. You can set group rights to any file to rw-, and any directory to rwx, and set the group as the group the user running the cgi belongs to.

Or for more security you can have the cgi just enter stuff in a file, and then use a cronjob run as root to grep the file to make sure it's okay, then change the DNS.

Jeff
 
Back
Top