The Laughing Cow
04-22-2002, 07:23 PM
I thought I asked this one before but hey I can't remember...
How is it possible to setup the following.
Box 1 = linuxbox.myhost.com
Box 2 = windowsbox.myhost.com
box 3 = bsdbox.myhost.com
for example.
Also - If one was to say have nameservers setup in WHM which I presume some how maps the ns of the main host can you either....
have
ns1.linuxbox.myhost.com
ns2.linuxbox.myhost.com
and the same for the other boxes?
OR can you share ns1.myhost.com and ns2.myhost.com for eg?
Or am I very wrong?
cheers
Originally posted by The Laughing Cow
How is it possible to setup the following.
Box 1 = linuxbox.myhost.com
Box 2 = windowsbox.myhost.com
box 3 = bsdbox.myhost.com
for example.
This is exactly what DNS meant to be, to point to different hosts :stickout However in hosting industry it means to point to one host as much as you can ;)
You need to have A records pointing to each box separately. That's all about it.
I'm not sure about your 2nd question.
allera
04-22-2002, 09:54 PM
linuxbox.myhost.com IN A 1.2.3.4
windowsbox.myhost.com IN A 1.2.3.5
bsdbox.myhost.com IN A 1.2.3.6
myhost.com IN NS ns1.myhost.com
myhost.com IN NS ns2.myhost.com
At the domain registrar, set the domain's nameservers to ns1.myhost.com and ns2.myhost.com. In your WHM or whatever you use to manage DNS, simply set up the options as mentioned above. You only need one DNS zone on the DNS server(s), just like any other site. Treat the hostnames as subdomains in your control panel because that's what they are. Just point them to a different IP. :)
I hope that made sense, getting late over here. :)
The Laughing Cow
04-23-2002, 03:16 AM
Yep thanks guys I completly understand.
The DNS issue still confuses me.
If I have nameservers setup on box called myhost.com as ns1 and ns2 for eg.
Would clients who are on a different box point DNS at the above?
Originally posted by The Laughing Cow
Would clients who are on a different box point DNS at the above?
Yes, they can put ns1 and ns2 in their domain registration records at the registrar. And you can setup the records in ns1/ns2 (which is same box) for their domain name and resolve their names to their own servers/IPs.
ns1/ns2 can point to -----> box1 , box2 etc.
where box1 and box2 does not need to have DNS/nameserver running. And they can also run nameserver, it won't effect ns1 and ns2.
Is that what you asked? :)
allera
04-23-2002, 08:29 AM
Originally posted by The Laughing Cow
Yep thanks guys I completly understand.
The DNS issue still confuses me.
If I have nameservers setup on box called myhost.com as ns1 and ns2 for eg.
Would clients who are on a different box point DNS at the above?
I don't know if you understand this and you just goofed above, but your box is not (or should not be) called myhost.com. That's just the domain. It'll be called something like foo.myhost.com.
Your DNS records will sit on ns1/ns2.myhost.com. You can have a server that ALL it does is DNS -- your customers point their domains to ns1/ns2.myhost.com and that server(s) takes care of the DNS requests. It merely maps the hostname being requested to an IP and back -- nothing else (keeping simplicity in mind here). You can host someone's DNS zone file on a machine in UK and the actual machine their website is on in India -- doesn't matter. The UK machine will get the DNS request, return the IP for that request, and the user's browser/application when then go to the IP specified by the DNS server will will land him/her on the server in India.
Make sense? There is no fancy footwork to make this happen either -- it's what DNS is. Just specify different IPs for different hostnames in your DNS zone file and the internet will comply. :)
The Laughing Cow
04-23-2002, 08:34 AM
Thanks Allera,
Yes was a goof on my part.
The only problem I see with this method AFAIK is that if you run multiple control panels over multiple servers and wanted to use only ns1.myhost.com and ns2.myhost.com you would manually have to add DNS records for new domains when you add a new one. Unless of course some/all control panels support this?
allera
04-23-2002, 08:38 AM
Correct, your panel would have to support this. Some out there do (they support spreading services across multiple boxes). I can't remember which ones, though. For some reason, H-Sphere and HostGUI come to mind, but I'm not sure. I don't think CPanel or Plesk do.
Maybe someone else here knows.
Yes, that can be a problem if the control panel (DNS portion) only works on the machine it is installed.
The Laughing Cow
04-24-2002, 06:59 PM
Okay, this is all making sense now - I apreciate the help.
My next question is.... When you register nameservers for example ns.domain.com and ns2.domain.com you set this through your registrar.
What would you do if you are using ns.win.domain.com and ns2.win.domain.com as seperate nameservers on the win box?
Respectivly win.domain.com is a DNS record pointing to the windows box?