LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-04-2006, 01:00 PM   #1
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
Basic DNS/Bind question


I am setting up Bind using Webmin on my Debian Sarge box for the first time and had a pretty basic question, I think. I plan to host at most 5 domains on this box. I have one master record all set up for one of the domains without problems. I created nameservers, A records, CNAME for www. MX records etc. I ran the domain through the dnsreport.com site and everything looks good.

My basic question is this: when I add my other domains, should I create master zone records for each of the domains or should I create slave zones record (or another type of record) for the other domains? Part of my confusion is the terminology and I keep finding different explanations via Google. I don't care if the other domains point to the first set of nameservers, e.g. domain2.com can use ns1.domain1.com and ns2.domain1.com and that's ok with me. But, I don't mind creating separate nameservers for domain2.com either, e.g. ns1.domain2.com and ns2.domain2.com. I just wanted to know what the proper practice was.

TIA.
 
Old 10-04-2006, 01:55 PM   #2
cjcox
Member
 
Registered: Jun 2004
Posts: 307

Rep: Reputation: 42
If your DNS is to hold the records for your other domains, then you will have master file db's for those domains as well.

e.g.
zone "domain1.com" in {
type master;
file "master/domain1.com";
};
zone "domain2.com" in {
type master;
file "master/domain2.com";
};

You would use "type slave;" if the DNS you are configuring is going to slave (transfer) the records from another DNS holding the master records.

My guess is that you simply need one DNS holding the records for the domains you manage. Then, you probably ought to look at setting up a slave DNS that can be used as a fallback in case your primary DNS is down. It's config will be similar to the master except with the "type slave;" and with a reference to the master DNS holding its records.

With regards to terminology... you need to stop looking at it in terms of "domains". Instead think of DNS as holding records according to zones. You can be authoritative for whatever zones you want to be authoritative for. Thus you could have zone entries for "microsoft.com" for example... obviously your nameserver isn't known as the authoritative source to the root DNS servers, so any records in your "microsoft.com" zone would only be known to hosts directly using your nameservers.

Certainly you CAN create separate DNS servers to hold different zones... but that might be expensive resource wise.

Go to howtoforge.com and check out their DNS section for some good info on DNS setup.
 
Old 10-04-2006, 02:28 PM   #3
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Original Poster
Rep: Reputation: 190Reputation: 190
Thanks for that really informative reply. I appreciate it.

Just so I understand, your suggestion is to separate master zone records, one for each domain. Each domain would have it's own nameservers etc, rather than have the extra domains all point to the nameserves of the first domain.

And yeah, I was not thinking of running separate Bind servers, one for each domain. I was just wondering whether to create separate master zone records, one for each domain, or create just one zone record for the first domain and have the other domains just point to the nameservers of the first domain

And thanks for the howtoforge tip -- checking them out now. I use that site for other stuff and dns articles look excellent.

Thanks again.
 
Old 10-06-2006, 09:25 AM   #4
Joebie
LQ Newbie
 
Registered: Oct 2004
Location: Netherlands
Distribution: Fedora core
Posts: 17

Rep: Reputation: 0
Bind

A slave zone will only create a local copy of the master server for redundancy and speed purposes. You can have just one bind server and host different domains on the server, but you will need a seperate file for each zone not a seperate server. You as you stated yourself may however use a different server for each domain but you don't have to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS/BIND question - HELP!!! r_deckard9 Linux - Networking 4 04-18-2006 09:53 PM
Bind DNS question little_ball Linux - Networking 8 02-23-2004 04:33 AM
DNS Bind question phowarth Linux - Networking 1 10-31-2003 01:31 AM
??? DNS or Bind Question ??? Viper Slackware 23 08-10-2002 11:01 AM
DNS Bind Question 360 Linux - Networking 1 08-13-2001 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration