DirectSlave - solution to add and remove zones on slave without DirectAdmin

Nothing changed.
But just to make sure I'm changing /etc/named.conf.
File /etc/named/secondary/named.conf is still empty.

If you restart bind on your DA server, it should notify all domains to your slave.

Check your syslog/messages log after bind restart.

It should list all your domains like

Code:
named[123456]: zone example.com/IN: loaded serial 2016071801

And at your slaves log you should see all the domains as well handling it.
 
I changed include '/etc/named/secondary/named.conf' to '/etc/named/directslave.conf' and now I get:
Jul 19 21:14:01 ns2 named[1821]: client 79.100.100.100#55386: received notify for zone 'da.poltel.com'
Jul 19 21:14:01 ns2 named[1821]: zone da.poltel.com/IN: Transfer started.
Jul 19 21:14:01 ns2 named[1821]: transfer of 'da.e-poltel.com/IN' from 79.100.100.100#53: connected using 79.100.100.102#35190
Jul 19 21:14:01 ns2 named[1821]: zone da.poltel.com/IN: transferred serial 2016071902
Jul 19 21:14:01 ns2 named[1821]: transfer of 'da.e-poltel.com/IN' from 79.100.100.100#53: Transfer completed: 1 messages, 12 records, 334 bytes, 0.001 secs (334000 bytes/sec)
Jul 19 21:14:01 ns2 named[1821]: zone da.poltel.com/IN: sending notifies (serial 2016071902)
Jul 19 21:14:01 ns2 named[1821]: dumping master file: /etc/named/secondary/tmp-ZK7YHjDsZ0: open: permission denied

I set:
chown -R root:named /etc/named
and
chmod 755 /etc/named/secondary/
 
It looks fine to me, is the folder /etc/named/secondary/ getting populated?

Is /etc/named/secondary/ the right folder? Is the one configured in directslave.conf for named_workdir?

Regards
 
Problem solved!

I had to:
chown named:named /etc/named/secondary/
chmod -R 755 /etc/named

But right now when I maunally enter DirectSlave IP on my PC I cannot resolv any site.
My goal is to set DA IP x.x.x.100, DS-1 IP x.x.x.101, DS-2 IP x.x.x.102.
DS-1 & DS-2 are on different machines so I want to use x.x.x.101 as DNS1 and x.x.x.102 as DNS2.
I opened 53 on both DS but I cannot ping my main poltel.com site or any other site.

My goal is to set both DS to be accessed from outside.
I have some remote IP phones and I want them to use my DS1 & DS2 and DNS-1 & 2. The reason for such setup is that I want my Phones to be registered to sip.domain.com and to be able to change immediately the IP of sip.domain.com just by changing it in DirectAdmin. After ~1 minute all the phones will register to new IP. I won't have to wait 24-48 hrs.
 
Last edited:
Try to reload named, or restart it.

And use dig @DNS-SERVER-IP domain.tld

To check if the named is repsonding and if is giving the informations back.

Also provide IP's and a domain to test would make things a lot easyer ;)

Regards
 
Error writing remote dns zone

Hi,

does anyone have similar problem:

Cluster: Error writing remote dns zone at host 5.x.x.x for domain (domain.com)?

I have problems with syncing since I've updated Debian from 7 to 8.

Any idea?

Kind regards,
dot
 
works on centos 7?

Hi guys,

DirectSlave works on centos 7?
Anyone tested on Centos 7?

Regards,
Milos
 
I didn't personally tested yet, but i think i've read of someone that used it on CentOS 7, maybe you should give it a try.

Best regards
 
I didn't personally tested yet, but i think i've read of someone that used it on CentOS 7, maybe you should give it a try.

Best regards

Would please help me.
Can I use DirectSlave for using OVH secondary server?
Alex today wrote in http://forum.directadmin.com/showthread.php?t=53883
that i should write some files by below guides:
http://forum.directadmin.com/showthread.php?t=53883
https://www.directadmin.com/features.php?id=1094

Your help will be appreciated.
Best regards,
Milos
 
You need a Server to run DirectSlave, and that server shouldn't have DirectAdmin on it.

You may need to clarify here or in the other post what is your goal, if you want to set your own secondary DNS Server or if you want to use OVH Slave DNS Server service.

Is not really clear so far what it is your goal.

Best regards
 
You need a Server to run DirectSlave, and that server shouldn't have DirectAdmin on it.

You may need to clarify here or in the other post what is your goal, if you want to set your own secondary DNS Server or if you want to use OVH Slave DNS Server service.

Is not really clear so far what it is your goal.

Best regards

I have a OVH dedicated server.
They offer me for free a secondary server.
I want to have a backup dns server for my server.
I added my domain to OVH panel and added txt file in my nameserver zone to approve that i'm domain owner.
They gave me a ip address of secondary dns server and sdns2.ovh.net.
Now i don't how to set secondary dns server.
 
I want to use OVH's secondary DNS server as backup dns server.
Do i need do it for my server.mydomain.com or for my main domain "mydomain.com"?
Server uses ns1.mydomain.com and ns2.mydomain.com.

I very confused.
I'm not miser. I can hire someone from this forum to do it for me but I want to learn more.

Thanks in advance.
 
Hello
I successfully manage to run DirectSlave on Centos7 . Domain are creating and modifie . Problem is removing somedomains .
Code:
 checking domain.com existance from 1xx.70.9x.x: not exist with owner none
1xx.70.9x.x have no permission to remove blabla.sla.pl owned by none
Even if i made changes to another domain it still holds domain.com

Does any one know how to fix that ?
 
not exist with owner none
Looks to me there are owner issues. If you are running Directslave as user "named" (for example), the files should be owned and created by user named.
I presume you did not create a user "none" for this purpose, so you have to look at the owner settings imho.
 
Back
Top