Skip to main content

2 servers and 1 dns only vps

Comments

21 comments

  • cPanelMichael
    Hello, Yes, you can link your second hosting server to the DNS-only server as part of a cluster. I recommend setting it up as a direct link, as documented at: Guide to DNS Cluster Configurations - cPanel Knowledge Base - cPanel Documentation You don't need to sync changes back from the DNS-Only server to the hosting server. Instead, you'd set the role to "Standalone". Thank you.
    0
  • james1985
    Thanks. I have done server 1 - snnc server 2 - standalone - dns 2 - standalone is this correct? if i set server 2 to sync and dns 2 as standalone, all records from server 1 end up on server 2? is this correct??
    0
  • cPanelMichael
    server 1 - snnc server 2 - standalone - dns 2 - standalone is this correct?

    Hello, 1. When viewing "WHM >> DNS Cluster" on each hosting server, the role for "DNS 2" should be "Synchronize Changes" or "Write Only". 2. When viewing "WHM >> DNS Cluster" on the DNS-only server, the role for "Server 1" and "Server 2" should be standalone. [LIST]
  • Standalone " This method fetches DNS records from the remote server, but does not write records from the local server to the remote server.
  • Synchronize " This method synchronizes records between the local server and the remote server.
  • Write-only " This method pushes the local server's records to write to the remote server, but does not query records from the remote server to write to the local server.
    Thank you.
  • 0
  • james1985
    Thanks I have done this, but it throwing up errors in into dns? is this normal? do i need to add any records to my main server as i am using the same domain, but a different 'subdomain for the host name? server1.mydomain.com server2.mydomain.com
    0
  • cPanelMichael
    Hello, You should add the "A" records for your hostnames in the DNS zone of "mydomain.com" on the server it's created as a cPanel account on if you do not already have separate DNS zones for the hostnames of each server. What error messages are you seeing on IntoDNS? Thank you.
    0
  • james1985
    Thanks, I already did that. on server 1 i have: server1.mydomain.com ns1.mydomain.com ns2.mydomain.com As well as the actual domain as a pcakage (not being used) mydomain.com server2.mydomain.com ns3.mydomain.com ns4.mydomain.com intodns shows the 4 nameservers at the top (so its picking up the glue records from the domain) but it only lists ns1.mydomain.com ns2.mydomain.com ERROR: One or more of your nameservers did not respond: The ones that did not respond are: 2.2.2.2 (ip of actual server2) ERROR: One or more of the nameservers listed at the parent servers are not listed as NS records at your nameservers. The problem NS records are: ns3.mydomain.com ns4.mydomain.com This is listed as an ERROR because there are some cases where nasty problems can occur (if the TTLs vary from the NS records at the root servers and the NS records point to your own domain, for example).
    0
  • cPanelMichael
    intodns shows the 4 nameservers at the top (so its picking up the glue records from the domain)

    Hello, Could you elaborate on the use of four name servers? You'd only want to use "ns1/ns2" or "ns3/ns4" as the name servers for a domain name in this scenerio, as you are not syncing the DNS between each hosting server. Thank you.
    0
  • james1985
    Hi, Sorry. I have set server 1: Ns1.mydomain.com ip 1.1.1.1 ns2.mydomain.com ip 2.2.2.2 (dns only) server 2 as: ns3.mydomain.com ip 3.3.3.3 ns4.mydomain.com ip 2.2.2.2 (dns only)
    0
  • cPanelMichael
    Hello, That setup looks fine, however when setting the name servers for a domain name at the domain registrar, you'd want to only use two name servers (the ones associated with the server the cPanel account is setup on). Thank you.
    0
  • james1985
    Hi, I have added a test domain to server 2 and setup it's own nameservers which seems to work ok. ns1.testdomain.com - points back to ns3 ns2.testdomain.com - points back to ns4 my issue is that both servers use the same domain, but different sub domains. intodns pick up the 4 glue records at the top, but claims that ns3 and ns4 are not responding which point to my server 2 and dns only server. Have i missed something that needs to be done with the main domain as it's used on 2 servers other than the glue records and I have setup dns records on server 2 for: ns3.mydomain.com ip 3.3.3.3 ns4.mydomain.com ip 2.2.2.2 server1.mydomain.com server2.mydomain.com
    0
  • cPanelMichael
    Hello, Check to ensure the NS records in the DNS zone for "mydomain.com" only include the NS1/NS2 records. The NS3 and NS4 entries in this zone should only be added as "A" records. Additionally, is the issue only the IntoDNS report, or is the domain name failing to resolve? Thank you.
    0
  • james1985
    mydomain.com is only on server 1 as an actual package. should i remove it? It contains records for only ns1 and ns2 on server 2 i added dns records for: ns3.mydomain.com with ip 3.3.3.3 ns4.mydomain.com with ip 2.2.2.2 and with ns records
    0
  • cPanelMichael
    Hello, Could you run the following command on each hosting server for the domain name in-question and let us know the output?
    grep NS /var/named/domain.com.db
    Ensure to replace the actual domain name with an example in the output. Thank you.
    0
  • james1985
    Thank You. This is what it states: server1: mydomain.com. 86400 IN NS ns1.mydomain.com. mydomain.com. 86400 IN NS ns2.mydomain.com. server2: /var/named/mydomain.com.db: No such file or directory
    0
  • cPanelMichael
    Hello, That looks like it's setup correctly. It's possible the information you see on IntoDNS is cached. Have you verified if there are any issues with opening the domain name in a browser? Thank you.
    0
  • james1985
    both servers load server1.mydomain.com:2087 server2.mydomain.com:2087 however checkin on whatsmydns.net server1.mydomain.com has the correct a record server2.mydomain.com has crosses for the ip also checking server2.mydomain.com shows lots of missing ns
    0
  • james1985
    server 2 is now showing when i try to edit dns: 2017100605 ;Serial Number no current owner name 3600 ;refresh no current owner name 7200 ;retry no current owner name 1209600 ;expire no current owner name 86400 ;minimum no current owner name ) unbalanced parentheses
    0
  • cPanelMichael
    Hello, Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. Thank you.
    0
  • james1985
    Thank You :) I have already opened one, but couldn"t see anywhere to include login details for server 1 or dns only server. Thanks again for your help.
    0
  • james1985
    Hi, Still waiting on support and looking online about this issue. My DNS Cluster is setup as: server 1 - sync server 2 - sync dns only - standalone one question i had in basic configuration in WHM on the servers on server 1 I just have: ns1 = ns1.mydomain.com ns2 = ns2.mydomain.com ns3 = empty ns4 = empty on server 2: ns1 = ns3.mydomain.com ns2 = ns4.mydomain.com ns3 = empty ns4 = empty my glue records for the domain at my registrar are: ns1.mydomain.com - 1.1.1.1 server1 ip ns2.mydomain.com - 2.2.2.2 dns only ip ns3.mydaomin.com - 3.3.3.3 server 2 ip ns4.mydomain.com - 2.2.2.2 dns only ip Do i need to add my domain.com to both servers and create A records with IP for mydomain.com and all name servers on both servers? for example: server1 ns1.mydomain.com - ip 1.1.1.1 server1 ip ns2.mydomain.com - ip 2.2.2.2 dns only server ns3.mydomain.com - ip 3.3.3.3 server 2 ip ns4.mydomain.com - ip 2.2.2.2 dns only server server1.mydomain.com - ip - 1.1.1.1 server1 ip server2.mydomain.com - ip - 3.3.3.3 server 2 ip server2 ns1.mydomain.com - ip 1.1.1.1 server1 ip ns2.mydomain.com - ip 2.2.2.2 dns only server ns3.mydomain.com - ip 3.3.3.3 server2 ip ns4.mydomain.com - ip 2.2.2.2 dns only server server1.mydomain.com - ip - 1.1.1.1 server1 ip server2.mydomain.com - ip - 3.3.3.3 server 2 ip if this is correct will having the 2 sets of records cause an issue on the dns only server? i have found that my host name on server 2 currently isn't responding so trying to load WHM fails: server2.mydomain.com:2087 (not accessible)
    0
  • cPanelMichael
    Do i need to add my domain.com to both servers and create A records with IP for mydomain.com and all name servers on both servers?

    Hello, No, you'd only need to edit the existing DNS zone for "mydomain.com" on the cPanel server it's created as a cPanel account on and ensure "A" records are setup for: ns1 - 1.1.1.1 server1 ip ns2 - 2.2.2.2 dns only ip ns3 - 3.3.3.3 server 2 ip ns4 - 2.2.2.2 dns only ip server1 - ip - 1.1.1.1 server1 ip server2 - ip - 3.3.3.3 server 2 ip
    Since it's a cluster and the role is "Write-Only", there's no need to setup a separate zone on additional servers for "mydomain.com" because the records are automatically synced. Thank you.
    0

Please sign in to leave a comment.