Web Hosting Talk







View Full Version : Same nameservers on different servers, or how?


nogi
11-18-2002, 02:07 PM
I am new to dedicated servers and hope that someone can enlighten me on how this may be done.

- I have a domain with a set of nameservers on a server. Those are the nameservers that the domains of my current hosting clients points to. But is it possible to use those same nameservers on another server(s)?. What are people doing, who runs a hosting company and has 10 different servers. I suppose that they don't use 10 different domains with nameservers on each server? - I would like to use the same nameservers on another dedicated server. Does anybody know how this could be done. The new server is a whm/cpanel server.

Thanks
John

Wolfy
11-18-2002, 07:24 PM
I think this answers your question:

Most companies have a "set" of name servers (each on seperate and redundant physical servers):
ns1.your-domain.com (Primary Name Server)
ns2.your-domain.com (Secondary Name Server)
.....
nsX.your-domain.com (Secondary Name Server)

These name servers may/may not be located on the same physical server that hosts webhosting customers.
But this "set" of name servers, maintains DNS for all the webhosting customers/servers that that company has.

With a smaller setup, the name servers would probably be on the same machine as the webhosting customers, with a larger setup, only some of the machines the company runs would be name servers, the rest would simply host customers.

StevenG
11-20-2002, 08:32 AM
To host accounts with your same name servers on multiple machines, the best thing to do is enable a DNS trust relationship between the 2 or more servers.

Machine A is the primary name server.
Machine B is the secondary name server.

so, set up your name servers as follows, after creating the trust on machine B within WHM.

Edit your domain names dns zone with the following

ns1 A 123.123.123.123 (IP from machine A)
ns2 A 223.223.223.223 (IP from machine B)

Update the IP for ns2 at your registrar.

This will create all master zones on machine A and have duplicate dns zone entries on Machine B - Machine B zones will be setup as slave zones. You have redundancy now because you have used tone IP from each of your 2 servers for your name servers.

You are able to see and edit all zones on either machine, and updates are immediate between the 2 servers.

To setup further servers, you just need to create another trust relationship from the new server to Machine A and add the A record for the new hostname.. you could then add ns3 with the new servers IP but 2 name servers on different machines would be sufficient.

Hope that helps.

UH-Matt
11-20-2002, 09:02 AM
all our servers have names, we dont just use ns1.domain we use

ns1.servername.domain.com
ns2.servername.domain.com

for one server, then

ns1.anotherserver.domain.com
ns2.anotherserver.domain.com

and so on.

nogi
11-20-2002, 05:44 PM
Thank you very much for the input :)

John

nogi
11-21-2002, 05:50 PM
Machine A is the primary name server.
Machine B is the secondary name server.

so, set up your name servers as follows, after creating the trust on machine B within WHM.

Edit your domain names dns zone with the following

ns1 A 123.123.123.123 (IP from machine A)
ns2 A 223.223.223.223 (IP from machine B)

Update the IP for ns2 at your registrar.

Did you mean that the above changes should be made on each of the machines? - Also I'm not sure where the trust is established in WHM on machine B? - Is it under server setup - 'edit setup' => Master Cluster Server?

John

StevenG
11-21-2002, 06:18 PM
On Server B (under server setup) enter the IP address of server A - Into the box that says enter IP for Primary name server and mentions about turning this server into a slave server.

That turns server B into a slave server.

You then go to DNS functions - Click Establish a trust relationship between a primary name server.
Enter root password for server A.

All the dns zones from server A will now be viewable on both servers - Changes to dns zones can be made on either server, the zone will be updated on both servers instantly.. so no, changes only need to be made upon 1 server, not all of them.

Any more questions feel free to ask..... :D

nogi
11-21-2002, 07:44 PM
No, I think I understands it now. Thanks for helping :D

John