as far as I can tell froxlor only supports creation of bind named.conf files and doesn't store dns info in the database is that correct?
I am needing to store the dns in database as I need other applications to be able to share the dns server and not have entries from the other apps be destroyed or overwritten as changes in froxlor occur (or my below approach would work great with a delete from statement added to it)... I also want to use mysql replication to to keep secondary nameservers synced...
what I have done is create a simple bash script that utilizes the zone2sql command and pushes the data into the db and then set this as the bind reload command in froxlor... the table is smart enough not to allow duplicate entries however I would have to handle manual removal of entries.... is there a better way to handle this? perhaps a sql trigger since they are on the same server in different dbs? is anybody else doing anything like this that has some insight?
#!/bin/bash
cd /etc/bind
ZONESQL="USE dns;"$(zone2sql -gmysql)
echo $ZONESQL | mysql -u userwithwriteaccess -ppasswordhere
Question
AltruHost
as far as I can tell froxlor only supports creation of bind named.conf files and doesn't store dns info in the database is that correct?
I am needing to store the dns in database as I need other applications to be able to share the dns server and not have entries from the other apps be destroyed or overwritten as changes in froxlor occur (or my below approach would work great with a delete from statement added to it)... I also want to use mysql replication to to keep secondary nameservers synced...
what I have done is create a simple bash script that utilizes the zone2sql command and pushes the data into the db and then set this as the bind reload command in froxlor... the table is smart enough not to allow duplicate entries however I would have to handle manual removal of entries.... is there a better way to handle this? perhaps a sql trigger since they are on the same server in different dbs? is anybody else doing anything like this that has some insight?
15 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.