Apache-DnsZone
view release on metacpan or search on metacpan
SetHandler perl-script
Perlhandler Apache::DnsZone::AuthCookie->login_screen
AuthType Apache::DnsZone::AuthCookie
AuthName DnsZone
</Location>
<Location /login>
SetHandler perl-script
PerlHandler Apache::DnsZone::AuthCookie->login
AuthType Apache::DnsZone::AuthCookie
AuthName DnsZone
</Location>
</VirtualHost>
Copy the contents of htdocs/ to /path/to/your/apache/htdocs
$ cp -R htdocs/* /path/to/your/apache/htdocs
Now you need to import the tables that DnsZone needs into your database.
for mysql:
$ mysql -udnszone -p dnszone < sql/mysql.sql
Before you can start using DnsZone you need to set your nameserver to
allow transfers and updates on the domain you want to make changes to
through DnsZone.
In named.conf:
zone "example.com" {
type master;
allow-transfer { 127.0.0.1; your.ip; };
allow-update { your.ip; };
file "example.com";
};
To create a new user in DnsZone:
$ cd bin/mysql
$ perl adduser.pl
Username to add: test
Password for test:
Password again:
Users email: test@example.com
Language: en
test(test@example.com:en) added...
To add a domain to the user:
$ perl addzone.pl
Domain for inserting into DnsZone: example.com
User to add example.com for: test
From which nameserver do you want to transfer the zone for example.com: yourname.server
Performing Zone transfer...
Which restrictions do you want to place on the user:
How many A records can he have: 10
How many CNAME records can he have: 10
How many MX records can he have: 10
How many NS records can he have: 10
How many TXT records can he have: 10
Do you want the SOA to be locked (n):
Inserting records into db...
NS: example.com yourname.server 86400
Do you want this record to be locked (n): y
MX: example.com mail.example.com 10 86400
Do you want this record to be locked (n):
A: mail.example.com 192.168.1.1 86400
Do you want this record to be locked (n):
example.com succesfully imported
You should now be set for accessing the webinterface, fire up your
favorite browser and point it to the host you created in apache.
If the software is complaining about missing modules you need to
install those.
If you encounter any bugs please report them so they can be fixed.
( run in 0.982 second using v1.01-cache-2.11-cpan-5735350b133 )