jethrocarr / namedmanager Goto Github PK
View Code? Open in Web Editor NEWAGPL web-based DNS management interface in PHP
AGPL web-based DNS management interface in PHP
More a question than an issue, but is there any way to schedule an update to occur at a particular time?
For example, say I want a DNS change to occur at midnight, but would prefer to enter it during more reasonable hours. I guess since it all runs out of cron, I could play around there, but that would affect all zone updates, not just the one.
Anyone have a nice solution for this?
I had configured named manager and it runs as a primary dns server and I want to connect a secondary dns server. The secondary dns server is running on centos 6.7 with bind-chroot. I have configured the config-bind.php I have added the secondary name server in the named manager interface but I cannot get it to sync. I get the error below.
[root@ns2 namedmanager]# php -q /usr/share/namedmanager/bind/namedmanager_bind_configwriter.php
PHP: syntax error, unexpected '(' in /etc/php.ini on line 1654
Error: Unknown failure whilst attempting to authenticate with the API - Could not connect to host
the primary dns server is running centos 7 with named manager -www and named manager -bind rpms and the secondary dns server has named manager-bind rpm
My question is it possible to add dns servers to the server running namedmanager-www by adding the named-manager bind and configuring config-bind.php to use the api_url, api_server_name and api_auth_key of the server running named manager-www ? Or should I just configure the secondary dns server normally without using namedmanager-bind package?
Add upport for the RP (see RFC 1183) resource record.
I have a little suggestion here:
When I have many domain records in a domain name.
I need to edit a record, but need a page to a page to find this record!
I need often to do such operation, this is very complicated!
So NamedManager is necessary to have a search function!
thank!
HI,
nice script - when i have to add a new domain the same two secondary nameservers and a few aliases for a new domain need to be added. To avoid typing always the same it would be great to have a set of default entries that get added to the zonefiles. There are already "Zone Configuration Defaults" maybe it can be integrated there?
Hi,
The ipv4_cidr regex for /10 subnet seems invalids. Here a regex that seems to be working :
http://www.regexpal.com/93987
dear sir
my English is poor, please forgive me。
i had add "amberdms-c6-public.repo" in /etc/yum.repos.d
1、and i "yum install -y namedmanager-bind namedmanager-www"
2、and i set "/etc/namedmanager/config-bind.php " like this
$config["api_url"] = "https://192.168.31.21/namedmanager"; $config["api_server_name"] = "ns.mars.cn"; $config["api_auth_key"] = "mykey";
3、and i set "/etc/named.conf" like this
`options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
include "/etc/named.namedmanager.conf";4、and I can access the web site https://192.168.31.21//namedmanager 5、and i have set configuration in web use key “mykey” too 6、but when i ”Add New Server” ,it's display "status_unsynced",and /var/log/namedmanager_logpush echo
Error: Unable to authenticate with NamedManager API - check that auth API key and server name are valid
Error: Unable to authenticate with NamedManager API - check that auth API key and server name are valid
Error: Unable to re-establish connection with NamedManager
Fatal Error`
please help me thinks very much
Hi!
I need to set some TXT records (mostly for DKIM) but the entries don't make it to the zonefile. For example when i set following entry in the Webinterface:
TXT 1800 test "v=DKIM1; k=rsa; p=MIZfKK0GCSqGSIb3DQEBAQUAA4G3456bbbAAALLL1KIwFUUU1lLdeo9rtSEQpAPPPqBQ1QIGf9hoL0c999988887777aaaaLvM6h+kjFFCsAKgCprVkzme/SSSSKN5v6ioz0ywJt8SGX7n0JgW+JiHcXfN84qXwAvrpfYqn8IDj1xUGDuiuoMjfbLiaaageXaoYo3Uq7pAikjSfokwIDAQAB"
the entry in the zonefile is truncated and looks like this:
test 1800 IN TXT
whereas the entry is correctly displayed in the webinterface.
Is there a certain limitation in the field lenght or something like that?
It would be great, if i could set those entries via namedmanager, as i'm pretty happy with it otherwise!
Thanks!
Günter Trimmel
This is almost what I've been looking for. It would be nice to be able to limit users to only manage certain domains and not all of them.
I run the follow command on my linux shell line:
php /usr/local/download/namedmanager/bind/namedmanager_bind_configwriter.php
and get the error message, why it raise the issues
PHP Notice: Undefined index: bind in /usr/local/download/namedmanager/bind/include/application/inc_bind.php on line 29
PHP Notice: Undefined index: bind in /usr/local/download/namedmanager/bind/include/application/inc_bind.php on line 31
PHP Notice: Undefined index: bind in /usr/local/download/namedmanager/bind/include/application/inc_bind.php on line 33
Error: Unable to create Bind configuration file
PHP Notice: Undefined index: bind in /usr/local/download/namedmanager/bind/include/application/inc_bind.php on line 37
PHP Notice: Undefined index: bind in /usr/local/download/namedmanager/bind/include/application/inc_bind.php on line 39
I don't think the sql script should create the database and/or use
it - in my opinion it should be up to the user to create the database and import it correctly.
The reason I stumbled upon this issue is because when you are importing the database with puppet it complains about the multiple create statements.
Also, if the users want to name the database something else they should be allowed to do that
Would love to hear some opinions on this
I want to know what will happen if I don't update the ns record when I add an A record.action_update_ns()
first delete the NS records?What's the reason to do this.
I tried to delete a record from a zone, but before hand accidentally deleted the record name.
Once I hit submit to delete the record, the validation gets there first and tells me that the Name cannot be empty.
I figure it shouldn't matter that one or both fields are empty on delete.
Emptying both fields seems to be OK but that's practically deleting the record anyway...
I noticed my secondary nameserver gave weird results (no soa etc) even locally, maybe because i forgot to set $config["bind"]["zonefullpath"] = "on";
in config-bind.php
which I did on the primary, and that one responds just fine.
So, I changed the config, emptied named.namedmanager.conf and removed the zone files manually - I've even tried resetting api_sync_config
field in the name_servers
table for the server, but no zone files are written, not added to named.namedmanager.conf
either.
The cron-scripts are running, but no errors thrown.
the config is follow:
*/
$config["api_url"] = "http://192.168.0.234/namedmanager"; // Application Install Location
$config["api_server_name"] = "ns1.18one.asia"; // Name of the DNS server (important: part of the authentication process)
$config["api_auth_key"] = "sdjk"; // API authentication key
and the log in the /var/log/namedmanager_bind_configwriter:
Fatal Error
Lock Conflict /var/lock/namedmanager_lock_configwriter
Error: Unable to authenticate with NamedManager API - check that auth API key and server name are valid
I can't find the wrong In the configure file,hope you help me,thanks!!
Currently running with the following changes to allow us to see why the sync fails.. Since it fails alot.
diff --git a/htdocs/include/application/inc_cloud_route53.php b/htdocs/include/application/inc_cloud_route53.php
index 0eb81d5..dac77cb 100644
--- a/htdocs/include/application/inc_cloud_route53.php
+++ b/htdocs/include/application/inc_cloud_route53.php
@@ -749,6 +749,8 @@ class cloud_route53
{
log_write("error", "process", "A failure occured whilst trying to submit a batch change from AWS/Route53.");
log_write("error", "process", "Failure returned: ". $e->getExceptionCode() ."");
+ log_write("error", "process", "Exception type: ". $e->getExceptionType() ."");
+ log_write("error", "process", "Exception Message: ". $e->getMessage() ."");
$this->changelog->log_post('server', "An error occured updating domain \"". $this->obj_domain->data["domain_name"] ."\" in Route53");
return 0;
Hello. I created a TXT record with this content:
"t=y; o=~"
After saving changes, the "t" was converted to a tab character. The change is in the database, is not a display error.
Hi
I've updating named manager to the latest version and upgrading PHP from 5.6 to 7.1. It seems everything works on the web- and nameserver - all changes are stored in the database and "php -q ... namedmanager_bind_configwriter.php"
is writing the zone updates. But nothing from this process is shown on the nameserver cli. Before the upgrade the configwriter is talkative about what he is doing - but now not one sign... I've tried to set debugging but without success. Any ideas?
nti
Looks like a very neat project and something I could really use. How stable is it? Any screenshots available for its interface?
Hi,
I had to rebuild your RPM's, I have changed the SPEC file where mysql-server is needed to mariadb-server.
After changing that en rebuilding the RPM, the RPM's installed correctly.
Think it's a good idea to change that also in your repo:)
Cheers
/usr/local/php/bin/php /usr/local/download/namedmanager/bind/namedmanager_bind_configwriter.php
Error: Unknown failure whilst attempting to authenticate with the API - Internal Server Error
Hi
All AWS Route53 zones keep getting awsdns-hostmaster.amazon.com. instead of the configured DEFAULT.
In manual bind i have zone similar:
Reverse PTR
6.0.0.0.0.0.0.0.7.2.0.0.0.1.0.0.0.0.0.0.e.4.5.b.b.7.5.2.c.5.d.f.ip6.arpa. IN PTR banana.nnxx.
5.0.0.0.0.0.0.0.7.2.0.0.0.1.0.0.0.0.0.0.e.4.5.b.b.7.5.2.c.5.d.f.ip6.arpa. IN PTR rp-kali.basilicata.nnxx.
AAAA Records
banana IN AAAA fd5c:257b:b54e::10:27:0:6
rp-kali IN AAAA fd5c:257b:b54e::10:27:0:5
with NamedManager?
Thanks.
Best regards.
I noticed a minor issue on importing a zonefile, in that if no TTLs are specified it applies the default TTLs rather than the specific NS and MX TTLs.
I want to in other systems by calling the API to manage the domain.
Hi,
I am trying to get NamedManager working on Gentoo.
I have 3 servers - 2 running bind and one Webserver. The WEBUI is running fine, however when i run
php -q /usr/share/namedmanager/bind/namedmanager_bind_configwriter.php
I get the following output:
Error: Unknown failure whilst attempting to authenticate with the API - looks like we got no XML document
Fatal Error
I have searched for any references to this but I am out of luck.
Add a Dynamic DNS record support, with an API to update the record securely.
This may be used for personal domains instead of using DynDNS or others, if used with NamedManager for managing the DNS.
Currently this prevents me from moving one of my zones from ZoneEdit to my personal DNS server, due to dynamic records.
how to modify host resolution with API?
think you
for testing i have create repo https://github.com/mikysal78/namedmanager
install on debian Jessie
you want create branch?
I want create un playbook ansible with NamedManager
I can download the wsdl file through webbrowser, but run the follow comand, it raise issues
php /usr/local/download/namedmanager/bind/namedmanager_bind_configwriter.php
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://10.0.21.78/namedmanager/api/namedmanager.wsdl' : failed to load external entity "https://10.0.21.78/namedmanager/api/namedmanager.wsdl"
in /usr/local/download/namedmanager/bind/include/application/inc_soap_api.php on line 33
PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://10.0.21.78/namedmanager/api/namedmanager.wsdl' : failed to load external entity "https://10.0.21.78/namedmanager/api/namedmanager.wsdl"
in /usr/local/download/namedmanager/bind/include/application/inc_soap_api.php:33
Stack trace:
#0 /usr/local/download/namedmanager/bind/include/application/inc_soap_api.php(33): SoapClient->SoapClient('https://10.0.21...')
#1 /usr/local/download/namedmanager/bind/namedmanager_bind_configwriter.php(108): soap_api->authenticate()
#2 {main}
thrown in /usr/local/download/namedmanager/bind/include/application/inc_soap_api.php on line 33
Hi, I got the follow issues, why? thanks!
[root@localhost download]# /usr/local/php/bin/php /usr/local/download/namedmanager/bind/namedmanager_bind_configwriter.php
Error: Unknown failure whilst attempting to authenticate with the API - Internal Server Error
Fatal Error[root@localhost download]#
From [email protected] Mon May 2 23:59:16 2016
Return-Path: [email protected]
X-Original-To: root
Delivered-To: [email protected]
Received: by localhost.localdomain (Postfix, from userid 0)
id 31F8620000AA; Mon, 2 May 2016 23:59:16 -0400 (EDT)
From: "(Cron Daemon)" [email protected]
To: [email protected]
Subject: Cron root@localhost php -q /usr/share/namedmanager/bind/namedmanager_bind_configwriter.php >> /var/log/namedmanager_bind_configwriter
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=72>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <LANG=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: [email protected]
Date: Mon, 2 May 2016 23:59:16 -0400 (EDT)
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://http://10.76.249.131/namedmanager/api/namedmanager.wsdl' : failed to load external entity "http://http://10.76.249.131/namedmanager/api/namedmanager.wsdl"
in /usr/share/namedmanager/bind/include/application/inc_soap_api.php on line 33
PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://http://10.76.249.131/namedmanager/api/namedmanager.wsdl' : failed to load external entity "http://http://10.76.249.131/namedmanager/api/namedmanager.wsdl"
in /usr/share/namedmanager/bind/include/application/inc_soap_api.php:33
Stack trace:
#0 /usr/share/namedmanager/bind/include/application/inc_soap_api.php(33): SoapClient->SoapClient('http://http://1...')
#1 /usr/share/namedmanager/bind/namedmanager_bind_configwriter.php(108): soap_api->authenticate()
#2 {main}
thrown in /usr/share/namedmanager/bind/include/application/inc_soap_api.php on line 33
The SPF RR has been abandoned and should be removed.
There is a problem doing ip6.arpa zones with PHP7.
In htdocs/include/amberphplib/inc_security.php you are using split, which is a deprecated function.
Replacing it with the explode function, seems to do the trick.
Dont know if it is a bug or not, anyway could be a nice option to be able ading bogus domain.
when running
php -q /usr/share/namedmanager/bind/namedmanager_bind_configwriter.php
is failing adding a domain like "office"
is working fine when adding domain like "domain.com"
I installerd namedmanager in Centos 7 with bind-chroot-9.9.4-38.el7_3.2.x86_64,and namedmanager generated zonefiles,but the domain name server was still not normal, also i shutted down the firewall and SELinux, and the namedmanager can be synchronized。
In addition, if do not install namedmanager, only use bind-chroot, write the zonefile by myself, DNS service is normal.
so, I want to know anbody in centos7 to install the namedmanager whether it can work nomarlly?
i want to creat AAA with api。how to do?
Is it possible to access Route53 through a web proxy? I have tried adding in the code that enables a proxy to the AWS API, but it still fails to connect.
I do not understand how to get the API key for namedmanager, can someone help me out?
Kind regards,
Wilson
users: michele, pippo, pluto etc...
michele access to only zone michele.tld
pippo access to only zone pippo.tld
etc...
How can it be done?
thanks.
Best regards.
Michele
hi,
when importing existing domains they won't get added in the namedmanager.conf until the domain is added to the default nameserver group. When creating a new domain from scratch the checkbox is preselected so it works.
Add support for the DNAME (see RFC 6672) resource record in all zone types (forward and reverse).
Hello, I tried to install namedmanager with the french guide you guys propose (https://wiki.deimos.fr/NamedManager_:_une_interface_web_agr%C3%A9able_pour_administrer_Bind)
and when he tells me to
cp resources/namedmanager_logpush.rcsysinit /etc/init.d/namedmanager_logpush update-rc.d -f namedmanager_logpush defaults
at the update-rc.d -f namedmanager_logpush defaults
I get a error message.
insserv: script namedmanager_logpush is not an executable regular file, skipped!
That's the error message I get, is this normal? If not can someone help me? Cuz I tried to continue to do the tutorial and when I try to connect to the web interface it fails, maybe this is the reason of?
Kind regards,
Wilson
Is there a plan to add RESTful API ?
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.
Is someone working on refactoring the mysql_* functions to use MySQLi or DPO functions? Now that Ubuntu 16.04 LTS ships with PHP 7.0, the mysql_ functions are no longer available?
We needed to add the following to our zones:
allow-query per zone and notify yes.
Would be good if this could be configured per DNS or per Zone.
diff --git a/bind/include/application/inc_bind.php b/bind/include/application/inc_bind.php
index b913890..bb7af50 100644
--- a/bind/include/application/inc_bind.php
+++ b/bind/include/application/inc_bind.php
@@ -291,6 +291,8 @@ class bind_api extends soap_api
{
fwrite($fh, "\tfile \"". $domain["domain_name"] .".zone\";\n");
}
+ fwrite($fh, "\tallow-query { any; };\n");
+ fwrite($fh, "\tnotify yes;\n");
fwrite($fh, "\tallow-update { none; };\n");
fwrite($fh, "};\n");
We had a situation now where we had to use domain verification for an SSL cert - and had to enter a TXT record which started with the content Z7.. And it gets translated to "Z7 by the web gui. And upon being sent to the system it gets converted to a special char and it stops the /home/source/namedmanager/bind/namedmanager_bind_configwriter.php from running.
Setting it in the database fixes the problem.
mysql> select * from dns_records where id=112;
+-----+-----------+------+------+------------+-----+------+
| id | id_domain | name | type | content | ttl | prio |
+-----+-----------+------+------+------------+-----+------+
| 112 | 10 | dzc | TXT | "7BXXXXX" | 120 | 0 |
+-----+-----------+------+------+------------+-----+------+
1 row in set (0.00 sec)
mysql> update dns_records set content='"Z7BXXXXX"' where id=112;
Query OK, 1 row affected (0.09 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> select * from dns_records where id=112;
+-----+-----------+------+------+------------+-----+------+
| id | id_domain | name | type | content | ttl | prio |
+-----+-----------+------+------+------------+-----+------+
| 112 | 10 | dzc | TXT | "Z7BXXXXX" | 120 | 0 |
+-----+-----------+------+------+------------+-----+------+
1 row in set (0.00 sec)
I'm trying to find a way to have Namedmanager to handle domains with DNSSEC.
We have three nameservers (bind) on CentOS and Ubuntu. Is there a way to add DNSSEC to existing domains? How about new ones?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.