jethrocarr / namedmanager

AGPL web-based DNS management interface in PHP
349 stars 126 forks source link

how can i use sql command& php command to update dns records zone? #56

Open caiqinyi opened 7 years ago

caiqinyi commented 7 years ago

hello,we use namedmanager for one more years. Lately we published in our production environment for inside network dns search. For high available,we want to use sql to insert mysql and execute php command to insert zone file,but we failed. our plans: one step: insert into dns_records(id_domain,name,type,content,ttl) values(4,'www1','A','192.168.1.8','600'); tow step: php -q /usr/share/namedmanager/bind/namedmanager_bind_configwriter.php Above,when we execute one step ,we can see it in namedmanger,but execute tow step,it do not insert to zone file. We found that ,it need us to login into namedmanger and "Save Changes" button,and execute tow step,it works. So we wan to know that which operation can instead "Save Changes".we just want to do some operation and no need to login into namedmanager.