When I put via ssh: "service start named"
I get: "start: unrecognized service"
Oke I did not know you were using Debian.
In that case it's probably the command:
service start bind
Anyway, you fixed that part.
For the script to be working, you should have running nameservers to begin with. So are you running local nameservers with 2 different ip addresses at least on your VPS?
If yes, check your /etc/named.conf decently, it could wel be one of the first lines is:
Code:
allow-transfer {"none";};
because that's added by default by Directadmin installation.
So if you add the "allow-transfer { myIP; }; " line it can cause errors, so check you're not using double commands.
I presume the "myIP" mentioned here is the IP you got from ClouDNS.
Be aware with that last }; which you don't need to place yourself at that place, because that would be the closing tag of your "options" statement which is already closed somewhere later in the file. Check it.
You probably only need to do what you did, but remove the last closing tag with semicolumn, so the last }; to make things working.