If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

How to set up 2 nameservers from the same domain name?

Started by Inetscope, Jul 19, 2022, 11:30 PM

Previous topic - Next topic

InetscopeTopic starter

Hello.

This is the required information:
There are two servers and one domain.
The name servers for the first server are already set up as ns1.my.com and ns2.my.com.

For the second server, I need to set up the name servers for the same domain as ns3.my.com and ns4.my.com.

The domains should be parked on the first server using ns1.my.com and ns2.my.com, and on the second server using ns3.my.com and ns4.my.com.

Is it feasible?
Thank you.
  •  


Drupas

The function of DNS is to direct to the server IP. This means that instead of using a DNS pair, the "A-name record" field value is replaced with the IP address of the server that needs to be accessed.

One possible solution for adding one domain to two servers is using the technology called Round-robin DNS, which can be found here: https://en.wikipedia.org/wiki/Round-robin_DNS

There are two ways to set up the two servers - either by having two servers located in the basement or by renting two servers from a hosting provider. In either case, the server should have an operating system and a program/role to work with DNS (in the case of Windows). If renting from a hosting provider, it is advisable to consult with them since they may have alternative solutions.
  •  

Roger Dave

We have a VDS server on Linux with two IP addresses (on the same interface if relevant) and the task of assigning names to different hosts within the domain example.com, similar to third-level domains, using only A-records. There are many clients of the same type, and a self-written management system for them. It is more convenient to give the client hosts names such as client1.example.com and store them that way.

I have set up Bind and configured it for MySQL, although this is not important right now. The registrar requires me to specify two name servers (name) and two IP addresses (if the name servers are from the same domain for which we are doing bind) for the domain name.

This means that I need to come up with ns1.example.com, ns2.example.com, and indicate the IP addresses on my server (where Bind is installed). After that, I can configure the settings on the Bind server.

To confirm that everything is set up correctly, I can specify the A-record test.example.com, compare it with 8.8.8.8, and ping the test.example.com.
  •  

yobkmooh

Yes, the scenario you described is entirely feasible and a common configuration for managing multiple servers and domains. Here's a breakdown of how this can be implemented:

1. Nameserver Configuration:
  - For the first server, the nameservers are already set up as ns1.my.com and ns2.my.com. This is a standard configuration, where the domain's DNS records point to these nameservers, instructing the internet's DNS system where to locate the resources for the domain.
  - For the second server, you plan to set up the nameservers as ns3.my.com and ns4.my.com. This is also a common practice, as it allows you to create an additional set of authoritative nameservers for the same domain.

2. Domain Parking:
  - The concept of "domain parking" or "domain forwarding" is the process of configuring a domain to point to multiple servers or hosting environments. This is a widely used technique for achieving redundancy, load balancing, and failover for your web presence.
  - In the scenario you described, the domain should be parked on both the first server (using ns1.my.com and ns2.my.com) and the second server (using ns3.my.com and ns4.my.com).
  - When a user tries to access the domain, the DNS system will check the configured nameservers and load-balance the requests between the two sets of nameservers (ns1.my.com/ns2.my.com and ns3.my.com/ns4.my.com).

3. Benefits of the Proposed Setup:
  - Redundancy: If one server experiences downtime or a failure, the other server can still serve the website or web application, ensuring continuous availability for your users.
  - Load Balancing: The DNS system will automatically distribute the incoming traffic across the two servers, improving overall performance and scalability of your web presence.
  - Failover: In the event of a server outage or maintenance on one of the servers, the other server can automatically take over, minimizing service disruptions for your users.
  - Flexibility: You can easily manage and migrate your domain between the two servers as needed, without impacting your users' experience. This allows for seamless server maintenance, upgrades, or even server migrations.

4. Technical Implementation:
  - To set up the domain parking, you will need to configure the DNS records for the domain to point to both sets of nameservers (ns1.my.com/ns2.my.com and ns3.my.com/ns4.my.com).
  - This can typically be done through your domain registrar's or hosting provider's control panel, where you can manage the domain's DNS settings.
  - Depending on the hosting provider, you may also need to ensure that the content (website, web application, etc.) is properly configured and deployed on both servers to ensure seamless failover and load balancing.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...