mangelot
Verified User
Hello
I'm working on a new project regarding mydns (mysql dns server) and mydnsconfig (control panel).
I have both master and slave (mysql replication) running.
I have made the files: /usr/local/directadmin/scripts/custom
like this:
for reference:
ip-mydns-server1 = master server mydns ipaddress
ip-da-server=the DA server where the zone is created or updated.
dns_create_post.sh
and
dns_write_post.sh
The dns_write_post runs perfect te zone is on mydns server 1 + 2
but the dns_create_post doesn't , I recieve the email confirmation (echo request) that it is created.
Also for some strange reason in dns_create_post.sh - $domain is (lowercase) working .
and in dns_write_post.sh $DOMAIN is (highercase) only working ??
(is this a BUG!)
is seems that the zone isn't active on the DA server before it runs the dns_create_post.sh script?
anybody suggestions? what is going on?
Regards Marco
I'm working on a new project regarding mydns (mysql dns server) and mydnsconfig (control panel).
I have both master and slave (mysql replication) running.
I have made the files: /usr/local/directadmin/scripts/custom
like this:
for reference:
ip-mydns-server1 = master server mydns ipaddress
ip-da-server=the DA server where the zone is created or updated.
dns_create_post.sh
Code:
#!/bin/sh
#This script will logon to Mydns 1 and imports the previously created domain.
/usr/bin/ssh root@ip-mydns-server1 "/usr/local/bin/mydnsimport -r -v --axfr=ip-da-server $domain"
echo -e "Subject: DNS ZONE CREATED DOMAIN $domain \n\nDnszone for domain $domain had been created\n.\n" | /usr/sbin/exim root
exit 0
dns_write_post.sh
Code:
#!/bin/sh
#This script will logon to MYdns 1 and imports the previously changed domain.
/usr/bin/ssh root@ip-mydns-server1 "/usr/local/bin/mydnsimport -r -v --axfr=ip-da-server $DOMAIN"
echo -e "Subject: DNS ZONE UPDATED DOMAIN $DOMAIN\n\nDnszone for domain $DOMAIN had been updated\n.\n" | /usr/sbin/exim root
exit 0;
The dns_write_post runs perfect te zone is on mydns server 1 + 2
but the dns_create_post doesn't , I recieve the email confirmation (echo request) that it is created.
Also for some strange reason in dns_create_post.sh - $domain is (lowercase) working .
and in dns_write_post.sh $DOMAIN is (highercase) only working ??
(is this a BUG!)
is seems that the zone isn't active on the DA server before it runs the dns_create_post.sh script?
anybody suggestions? what is going on?
Regards Marco
Last edited: