jeudi 26 février 2015

Removing DNS via DNS Administration does not work

As the title says removing DNS via DNS Administration does not work. This is true for domains that have no Local Data or Local Mail on the server and pointing to an external server. In all other cases removing DNS seems to work ok if the domain is deleted by a DA user on the server.



Error is on both servers Centos 6.6 and Centos 7



Setup:

KVM Centos server + DA

External DNS cluster

Custom scripts in /usr/local/directadmin/scripts/custom



Used this setup provided by my hoster:


Quote:




How to configure your VPS to use our DNS cluster

You can use the notify feature in bind to transfer the DNS records to our DNS servers.



In bind you should replace this in /etc/named.conf between options {}

allow-transfer { none; };

allow-recursion { localnets; };



with

allow-transfer {x.x.x.x;};

notify yes;

also-notify {x.x.x.x;};

allow-recursion { 127.0.0.1; };

listen-on-v6{any;};

notify-source yourserverip;

transfer-source yourserverip;



Save the configuration and restart bind. Bind will now transfer the DNS records.

For DirectAdmin it is possible to automate this by doing this:




Code:



echo '#!/bin/bash

/usr/bin/wget "http://ift.tt/1AO1akn; --no-check-certificate -O /dev/null >/dev/null 2>&1' >> /usr/local/directadmin/scripts/custom/domain_destroy_post.sh

echo '#!/bin/bash

/usr/bin/wget "http://ift.tt/1AO1akn; --no-check-certificate -O /dev/null >/dev/null 2>&1' >> /usr/local/directadmin/scripts/custom/domain_change_post.sh

chown diradmin:diradmin /usr/local/directadmin/scripts/custom/domain_destroy_post.sh

chown diradmin:diradmin /usr/local/directadmin/scripts/custom/domain_change_post.sh

chmod 755 /usr/local/directadmin/scripts/custom/domain_destroy_post.sh

chmod 755 /usr/local/directadmin/scripts/custom/domain_change_post.sh






Don't know this is a bug in DA or there is something wrong with my setup.





Removing DNS via DNS Administration does not work

Aucun commentaire:

Enregistrer un commentaire