Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section DNS Server
  • Search

DNS Cluster

Questions regarding the DNS Server
BIND
Post Reply
  • Print view
Advanced search
19 posts
  • 1
  • 2
  • Next
edg3d903
Posts: 4
Joined: Sun Feb 14, 2016 8:26 pm

DNS Cluster
  • Quote

Post by edg3d903 » Sun Feb 28, 2016 5:30 am

Hi,

I have two VPSes. VPS1 is web, mail, cp, db - and I'd like VPS2 to be redundant dns server. So, ns1.domain.com will be on VPS1 and ns2.domain.com will be on VPS2.

I have VestaCP installed on both. I'm find it a difficult challenge to configure the master-slave cluster of DNS between the two servers.

Would appreciate your help.

Thanks,
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: DNS Cluster
  • Quote

Post by tjebbeke » Sun Feb 28, 2016 10:32 am

It isn't that hard.

http://vestacp.com/docs/#how-to-setup-dns-cluser

Server1 : Web, DNS master, ...
Server 2: DNS Slave

1. On server2 create user 'dns-cluster'
2. on server1 run command as root: v-add-remote-dns-host server2.domainname.com 8083 admin passwordofadminaccountserver2


Password and host name should be replaced with relevant data of course.
Top

edg3d903
Posts: 4
Joined: Sun Feb 14, 2016 8:26 pm

Re: DNS Cluster
  • Quote

Post by edg3d903 » Sun Feb 28, 2016 8:13 pm

You're right, it isn't too difficult. I ran into a problem where running the command v-add-remote-dns-host would spit back a "no directory or file found" error. But I was able to search and find a solution to that (putting /source/profiles) before the command.

The only other issue that I'm see is when I check the nameservers on intodns, it gives an error that the dns server (server2) is not responding. But everything with that server looks fine (port 53 is open, dns server is running). Any ideas?
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: DNS Cluster
  • Quote

Post by tjebbeke » Mon Feb 29, 2016 10:53 am

On server2 you can check if the DNS domains and records exist in user 'dns-cluster'.
Top

zarizza
Posts: 1
Joined: Tue Mar 01, 2016 10:00 am

Re: DNS Cluster
  • Quote

Post by zarizza » Tue Mar 01, 2016 10:21 am

Hi,

Sorry hijack this thread. Is possible to add another cluster? Mean have dns1,dns2 and dns3 using same setup?
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: DNS Cluster
  • Quote

Post by tjebbeke » Tue Mar 01, 2016 12:37 pm

zarizza wrote:Hi,

Sorry hijack this thread. Is possible to add another cluster? Mean have dns1,dns2 and dns3 using same setup?
I think it's possible.
Top

jgriggs79
Posts: 11
Joined: Thu Nov 14, 2013 3:36 am

Re: DNS Cluster
  • Quote

Post by jgriggs79 » Fri May 20, 2016 3:52 am

Not meaning to hijack this thread, but I'm trying to set up a Cluster with 2 servers...

on server one, I run the command:
./v-add-remote-dns-host ns2 8083 admin *******
and it returns
Error: api connection to ns2 failed
I have ns2.servername pointed to the IP of the 2nd server. So what am I failing at here?
Top

jgriggs79
Posts: 11
Joined: Thu Nov 14, 2013 3:36 am

Re: DNS Cluster
  • Quote

Post by jgriggs79 » Sat May 21, 2016 4:51 am

I got that problem solved. But I've checked the 2nd server, and nothing ever syncs to the 2nd server for DNS. I'm not sure what I did wrong?
Top

mestresan
Posts: 33
Joined: Wed May 13, 2015 12:05 am

Re: DNS Cluster
  • Quote

Post by mestresan » Fri Jul 08, 2016 2:00 pm

My cluster stopped sync =(

I try remove and re-add ... but not work ... just work foce sync all command
Top

mestresan
Posts: 33
Joined: Wed May 13, 2015 12:05 am

Re: DNS Cluster
  • Quote

Post by mestresan » Fri Jul 08, 2016 2:39 pm

hahaha

yes... can be better .... or do manual sync from all
Top


Post Reply
  • Print view

19 posts
  • 1
  • 2
  • Next

Return to “DNS Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password